Recently, I have rolled out an update to Leaflet.Deflate, which adds a few changes and new features.
Instantiating the plugin and adding it to the map is now more in line with other Leaflet plugins:
Big thanks to Lindsey Jacks, who helped with this.
Then, you can apply Leaflet.Deflate to selected features by adding the features to a
FeatureGroup and then appying Leaflet.Deflate to that
FeatureGroup. Here’s how:
And finally, you can cluster markers using Leaflet.Markercluster and Leaflet.Markercluster.LayerSupport. Again, add the features to a
FeatureGroup and then check-in the
FeatureGroup with a