react-leaflet-markercluster
react-leaflet-markercluster copied to clipboard
MarkerClusterGroup very low performance with large number of markers
Hello!
In my environment, I am using:
- "leaflet": "1.7.1"
- "react-leaflet": "2.7.0"
- "react-leaflet-markercluster": "2.0.0"
Tried to load around 1000 markers but the performance is very very low. Did some debugging and it looks like the clusters are being recalculated unnecessarily for some reason.
I found a sandbox to test this from this comment https://github.com/yuzhva/react-leaflet-markercluster/issues/21#issuecomment-610924137: https://codesandbox.io/s/gallant-leakey-qqupl?file=/src/App.js
Sandbox env:
- "leaflet": "1.7.1"
- "leaflet.markercluster": "1.4.1"
- "react-leaflet": "3.0.2"
- "react-leaflet-markercluster": "3.0.0-rc1"
Does the sandbox need leaflet.markercluster package? I am not using it on my local env.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Same here, totally useless with 10k markers.
To me the codesandbox works just fine, I can move the map and zoom in/out without problems. Is this issue resolved then?
To me the codesandbox works just fine, I can move the map and zoom in/out without problems. Is this issue resolved then?
It is working fine for me as well now. Not sure how the performance was improved since there were no new commits...