leaflet-vector-layers
leaflet-vector-layers copied to clipboard
Support for clusters
It would be nice if you support clustering for the features that are being displayed. Maybe use the existing leaflet cluster-marker plugin?
+1, I was trying to use lvector AGS with the marker-cluster plugin - is it possible?
I don't see why it wouldn't be possible. I've not used the marker cluster plugin. But I'd envision it working by looking for a cluster option flag, or option to allow custom clustering, and assuming the marker cluster library is loaded and available.
LVL would just have to add the GeoJSON markers to an L.MarkerClusterGroup: https://github.com/Leaflet/Leaflet.markercluster/blob/master/example/geojson.html