Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving markers #72

Open
n-hor opened this issue Dec 16, 2021 · 1 comment
Open

Moving markers #72

n-hor opened this issue Dec 16, 2021 · 1 comment

Comments

@n-hor
Copy link

n-hor commented Dec 16, 2021

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
Copy link
Owner

manubb commented Dec 16, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants