Sub-plugin for Leaflet.markercluster
plugin (MCG in short); brings compatibility with
L.Control.Layers
and other Leaflet plugins.
I.e. everything that uses direct calls to map.addLayer
and map.removeLayer
.
Leaflet.markercluster plugin provides beautiful animated Marker Clustering functionality.
Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps.
https://github.com/ghybs/Leaflet.MarkerCluster.LayerSupport
NOTE: if your usage requires only compatibility of MCG with L.Control.Layers, you might be interested in this more simple plugin: Leaflet.FeatureGroup.SubGroup.