mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Another _noHas hack to fix removing layers.
This commit is contained in:
@@ -448,7 +448,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
//Cluster is currently on the map, need to put the marker on the map instead
|
||||
L.FeatureGroup.prototype.removeLayer.call(this, cluster);
|
||||
if (!dontUpdateMap) {
|
||||
otherMarker._noHas = true;
|
||||
L.FeatureGroup.prototype.addLayer.call(this, otherMarker);
|
||||
delete otherMarker._noHas;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user