manubb / Leaflet.PixiOverlay

Bring Pixi.js power to Leaflet maps
MIT License
478 stars 86 forks source link

collision detection with variable size markers - keep sizes constant #73

Open gase12 opened 2 years ago

gase12 commented 2 years ago

hi. I am trying to prevent the circle collision detector script to rescale the markers if they overlap. I am doing a dataviz project and using sizes to represent data. even with fixed circle size the algorithm rescales nodes.

any suggestion on turning off this feature? lambda is wired in too much, so i am not sure what to modify exactly. c1.r *= lambda1; c2.r *= lambda2;

thanks

manubb commented 2 years ago

Hi. I don't think that the solveCollision algorithm can be easily modified so that markers keep a constant size.

gase12 commented 2 years ago

hm. ok. no prob. I will look into something else then to solve this on canvas thx