[okfn-labs] cluster makers support for leaflet

Maurizio Napolitano napo at fbk.eu
Thu Aug 16 08:50:34 UTC 2012


I love OpenLayers, but, i understand that in OKFN leaflet is more loved :)
For this reason i point out a plugin for LeafLet with the support for 
the marker clusters
https://github.com/danzel/Leaflet.markercluster#leafletmarkercluster

If you have a lot of markers in a map, the performance of the browser 
begin to go down and the readability of the map is very hard.
With a cluster function you obtain a marker with a number that explain 
the numbers of points behind.
By using the zoom function the clusters change and the points are more 
readable.
The plugin use a funny visualization: over the cluster there is the 
number, but, with the mouseover function show also a polygon to 
understand the area behind.

Example here
http://danzel.github.com/Leaflet.markercluster/example/marker-clustering-realworld.388.html

I opened a issue for the okfn dashboard here
https://github.com/okfn/dashboard/issues/36

I hope to find time to write a patch to propose.

Ciao




More information about the okfn-labs mailing list