mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Update build
This commit is contained in:
Vendored
+19
-2
@@ -125,13 +125,14 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
|
|
||||||
//Takes an array of markers and adds them in bulk
|
//Takes an array of markers and adds them in bulk
|
||||||
addLayers: function (layersArray) {
|
addLayers: function (layersArray) {
|
||||||
|
var i, l, m;
|
||||||
if (!this._map) {
|
if (!this._map) {
|
||||||
this._needsClustering = this._needsClustering.concat(layersArray);
|
this._needsClustering = this._needsClustering.concat(layersArray);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0, l = layersArray.length; i < l; i++) {
|
for (i = 0, l = layersArray.length; i < l; i++) {
|
||||||
var m = layersArray[i];
|
m = layersArray[i];
|
||||||
|
|
||||||
if (this.hasLayer(m)) {
|
if (this.hasLayer(m)) {
|
||||||
continue;
|
continue;
|
||||||
@@ -148,6 +149,17 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Update the icons of all those visible clusters that were affected
|
||||||
|
for (i in this._layers) {
|
||||||
|
if (this._layers.hasOwnProperty(i)) {
|
||||||
|
m = this._layers[i];
|
||||||
|
if (m instanceof L.MarkerCluster && m._iconNeedsUpdate) {
|
||||||
|
m._updateIcon();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds);
|
this._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -1715,6 +1727,11 @@ L.MarkerCluster.include(!L.DomUtil.TRANSITION ? {
|
|||||||
for (i = childMarkers.length - 1; i >= 0; i--) {
|
for (i = childMarkers.length - 1; i >= 0; i--) {
|
||||||
m = childMarkers[i];
|
m = childMarkers[i];
|
||||||
|
|
||||||
|
//Marker was added to us after we were spidified
|
||||||
|
if (!m._preSpiderfyLatlng) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
//Fix up the location to the real one
|
//Fix up the location to the real one
|
||||||
m.setLatLng(m._preSpiderfyLatlng);
|
m.setLatLng(m._preSpiderfyLatlng);
|
||||||
delete m._preSpiderfyLatlng;
|
delete m._preSpiderfyLatlng;
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user