mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Correct getBounds when not on the map
This commit is contained in:
@@ -220,7 +220,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
if (this._topClusterLevel) {
|
||||
bounds.extend(this._topClusterLevel._bounds);
|
||||
} else {
|
||||
for (var i = this._needsClustering.length; i >= 0; i--) {
|
||||
for (var i = this._needsClustering.length - 1; i >= 0; i--) {
|
||||
bounds.extend(this._needsClustering[i].getLatLng());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user