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

How browser freezing can be avoided for 20K plus node unclustering #14

Open
tushersuvro opened this issue Jul 5, 2020 · 1 comment
Open

Comments

@tushersuvro
Copy link

Since you mentioned in one of your so post answer that after un clustering when large number of markers are loading on the map, it will freeze/hang the browser. It is indeed happening in one of my project where browser is getting hung for 30-40 second then loading all the markers ( 20k+ ) on the map. Do you have solution to this in the version of plugin and can you guide me on this? Also it would be nicer to have a loader which will be notifying the progress of un clustering. Thanks.

@ghybs
Copy link
Owner

ghybs commented Jul 13, 2020

Hi,

Thank you for your message.
Please feel free to ask on Stack Overflow your help question next time, in order to reach a wider audience.

A simple way of preventing browser freeze is simply to disable the unclustering feature below some zoom level, when you know there will be too many Markers showing.

As for the loader, this would be extremely difficult, as the freeze is most probably purely a browser painting step, while the JavaScript thread is totally paused.

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