[GIS] Leaflet.markercluster Gives slow performance when zooming

leafletmarkers

I have used leaflet marker cluster to render the geojson.

I am rendering 1 million geojson data. This gives better performance when render the data, but when zooming the map, gives very slow performance.

How to avoid this issue?

I am using the events zoomstart and zoomend to show the spinner.

Even zoomstart starts only after 2 or 3 seconds.
This is starting after 6 or 8 seconds.

 map.on("zoomstart", function (e) {map.spin(true);});
 map.on("zoomend", function (e) { map.spin(false); }); 

Best Answer

Use a different clustering plugin.

There are 10 listed for clustering/decluttering.

Related Question