leaflet-dvf icon indicating copy to clipboard operation
leaflet-dvf copied to clipboard

Using dvf markers as Leaflet.markercluster's cluster icon.

Open PedroDMarques opened this issue 10 years ago • 2 comments

I've been trying to use the new markers provided with dvf as the cluster group icon for the markercluster plugin but with no success thus far. Since markercluster is expecting a L.DivIcon, is there any work around that I can take to make this happen ? I've been trying to reach down into the core of dvf but I haven't found a way to do so yet, if it is possible.

PedroDMarques avatar Oct 25 '15 22:10 PedroDMarques

Good question. I'm not sure of a workaround offhand without delving into the MarkerCluster code, and the workaround might be somewhat involved. I'll definitely look into it, though, and get back to you.

sfairgrieve avatar Oct 26 '15 11:10 sfairgrieve

The same thing. marker cluster requires function to create icon, not marker.

Another issue probably - when I use DVF markers in marker cluster, click on cluster icon displays pie chart markers broken - i.e., segments of pie chart moved apart of each other. I'll try to attach screenshot later. This is probably an issue of marker cluster, but I can't understand, why cluster code could even split svg object to it parts? Shouldn't it be a group etc?

sshikov avatar Jun 21 '17 08:06 sshikov