mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Make this work on old leaflet too. Thanks @nkovacs
This commit is contained in:
@@ -272,7 +272,7 @@ L.MarkerCluster = L.Marker.extend({
|
||||
for (i = c._childClusters.length - 1; i >= 0; i--) {
|
||||
m = c._childClusters[i];
|
||||
if (!exceptBounds || !exceptBounds.contains(m._latlng)) {
|
||||
if (L.FeatureGroup.prototype.hasLayer.call(c._group, m)) {
|
||||
if (!L.FeatureGroup.prototype.hasLayer || L.FeatureGroup.prototype.hasLayer.call(c._group, m)) {
|
||||
L.FeatureGroup.prototype.removeLayer.call(c._group, m);
|
||||
}
|
||||
m.setOpacity(1);
|
||||
|
||||
Reference in New Issue
Block a user