leaflet-vector-layers icon indicating copy to clipboard operation
leaflet-vector-layers copied to clipboard

Support for clusters

Open mrg12 opened this issue 12 years ago • 3 comments

It would be nice if you support clustering for the features that are being displayed. Maybe use the existing leaflet cluster-marker plugin?

mrg12 avatar Oct 31 '12 08:10 mrg12

+1, I was trying to use lvector AGS with the marker-cluster plugin - is it possible?

oeon avatar May 22 '13 14:05 oeon

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.

JasonSanford avatar May 22 '13 16:05 JasonSanford

LVL would just have to add the GeoJSON markers to an L.MarkerClusterGroup: https://github.com/Leaflet/Leaflet.markercluster/blob/master/example/geojson.html

bmcbride avatar May 22 '13 16:05 bmcbride