mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 16:26:55 +02:00
Update build
This commit is contained in:
Vendored
+13
@@ -221,6 +221,19 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//Override FeatureGroup.getBounds as it doesn't work
|
||||||
|
getBounds: function () {
|
||||||
|
var bounds = new L.LatLngBounds();
|
||||||
|
if (this._topClusterLevel) {
|
||||||
|
bounds.extend(this._topClusterLevel._bounds);
|
||||||
|
} else {
|
||||||
|
for (var i = this._needsClustering.length - 1; i >= 0; i--) {
|
||||||
|
bounds.extend(this._needsClustering[i].getLatLng());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return bounds;
|
||||||
|
},
|
||||||
|
|
||||||
//Returns true if the given layer is in this MarkerClusterGroup
|
//Returns true if the given layer is in this MarkerClusterGroup
|
||||||
hasLayer: function (layer) {
|
hasLayer: function (layer) {
|
||||||
if (this._needsClustering.length > 0) {
|
if (this._needsClustering.length > 0) {
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user