mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 08:02:51 +02:00
Update build
This commit is contained in:
Vendored
+5
-4
@@ -329,12 +329,13 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
//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());
|
||||
}
|
||||
}
|
||||
|
||||
for (var i = this._needsClustering.length - 1; i >= 0; i--) {
|
||||
bounds.extend(this._needsClustering[i].getLatLng());
|
||||
}
|
||||
|
||||
bounds.extend(this._nonPointGroup.getBounds());
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user