manubb / Leaflet.PixiOverlay

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

Moving markers #72

Open n-hor opened 2 years ago

n-hor commented 2 years ago

Please tell me, I'm using the example "French cities". I have about 8 thousand objects on the map. Their gps coordinates are constantly updated and I have to constantly call the "BuildQuadTrees" function for correct rendering. This call slows down the browser very much. Is there any other way to keep the coordinates updated all the time?

manubb commented 2 years ago

If you don't need/want to avoid marker overlaps, you do not have to use quad trees at all. When coords are updated, you only need to update each marker with the new projected coords and redraw everything.