mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Don't try extend bounds by an invalid bounds, doesn't work on leaflet versions earlier than Leaflet/Leafet@ef17f99708, to be removed when 0.6 is released.
This commit is contained in:
@@ -278,7 +278,11 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
}
|
||||
}
|
||||
|
||||
bounds.extend(this._nonPointGroup.getBounds());
|
||||
//TODO: Can remove this isValid test when leaflet 0.6 is released
|
||||
var nonPointBounds = this._nonPointGroup.getBounds();
|
||||
if (nonPointBounds.isValid()) {
|
||||
bounds.extend(nonPointBounds);
|
||||
}
|
||||
|
||||
return bounds;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user