Search code examples
pythonleafletfolium

6 millions of markers in folium/leaflet map


With the MarkerCluster algorithm, it's possible to cluster the nearby markers together, so the map is visually very acceptable.

however, I found that the performance and the response of leaflet map decrease with the number of markers inside it.

I still don't understand it but I found people talking about Server-side clustering solution instead of client-side clustering.

This durable module project is a solution for big numbers of markers that uses this concept (Server-side clustering) in leaflet map.

My questions are:

how it is done in leaflet map?
how to make this solution in python at folium maps?


Solution

  • I find an Opensource solution for leaflet and Mapbox.

    it is the SuperCluster project created by the owner of leaflet. it is Server-Side Clustring solution with node.js and Client-Side Clustring with MapBox.

    the concept of these algorithme is explained here