Leaflet / Leaflet.markercluster

Marker Clustering plugin for Leaflet
MIT License
3.98k stars 1k forks source link

Call to L.markerClusterGroup affecting other groups added to map #1068

Open Noxdor opened 2 years ago

Noxdor commented 2 years ago

How to reproduce

What behaviour I'm expecting and which behaviour I'm seeing

I am expecting the two groups to be isolated from each other. The effect of the MarkerClusterGroup should not be applied to the FeatureGroup. But it is, and we tested it and it happens as soon as we call L.markerClusterGroup(). If we don't call this function, the FeatureGroup's marker doesn't slide on the map.

Minimal example reproducing the issue

Using http://leafletjs.com/edit.html or any other jsfiddle-like site.