manubb / Leaflet.PixiOverlay

Bring Pixi.js power to Leaflet maps
MIT License
463 stars 85 forks source link

Moving markers #72

Open seqond-soft opened 2 years ago

seqond-soft 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.