mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
As we no longer move cluster we don't need to update them in the DistanceGrid as we cluster
This commit is contained in:
@@ -292,7 +292,6 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
|
||||
if (cluster) {
|
||||
cluster._addChild(marker);
|
||||
clusters.updateObject(cluster, this._map.project(cluster.getLatLng(), zoom));
|
||||
} else {
|
||||
// otherwise, look through all of the markers we haven't managed to cluster and see if we should form a cluster with them
|
||||
newCluster = this._clusterOne(unclustered, marker, markerPoint);
|
||||
@@ -319,6 +318,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
unclustered.eachObject(function (marker) {
|
||||
|
||||
Reference in New Issue
Block a user