MarkerCluster with SVGMarker
ulrichson opened this issue · 3 comments
ulrichson commented
The example in https://github.com/humangeo/leaflet-dvf/blob/master/examples/html/manymarkers.html demonstrates the clustering of markers with the Leaflet MarkerCluster plugin. However, changing L.MapMarker
to e.g. L.SVGMarker
(with the required parameters, see below) somehow disables the clustering, although the svg markers are displayed correctly.
Is it possible to use MarkerCluster with all markers?
var marker = new L.SVGMarker(new L.LatLng(Math.random() * 90, Math.random() * 180), {
svg: "http://upload.wikimedia.org/wikipedia/commons/8/8b/Green_Arrow_Up_Darker.svg",
size: new L.Point(20, 20)
});
sfairgrieve commented
Thanks for pointing this out. I never tested L.SVGMarker with the clustering plugin, so I'll investigate and have a fix out soon.
sfairgrieve commented
I figured out what the issue is. I'll include a fix in the next push, which should be tomorrow morning sometime.
ulrichson commented
Awesome, thanks!