react-leaflet-markercluster icon indicating copy to clipboard operation
react-leaflet-markercluster copied to clipboard

MarkerClusterGroup very low performance with large number of markers

Open TiagoPortfolio opened this issue 4 years ago • 4 comments

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.

TiagoPortfolio avatar Dec 09 '20 14:12 TiagoPortfolio

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.

stale[bot] avatar Jan 08 '21 15:01 stale[bot]

Same here, totally useless with 10k markers.

meliborn avatar Jan 20 '21 09:01 meliborn

To me the codesandbox works just fine, I can move the map and zoom in/out without problems. Is this issue resolved then?

leverglowh avatar Jan 29 '21 15:01 leverglowh

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

TiagoPortfolio avatar Jan 29 '21 16:01 TiagoPortfolio