mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-22 08:04:16 +02:00
Expand the bounds out to give a screen width on each side
This commit is contained in:
@@ -357,8 +357,8 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
_getExpandedVisibleBounds: function () {
|
||||
var map = this._map,
|
||||
bounds = map.getPixelBounds(),
|
||||
width = 0,//Math.abs(bounds.max.x - bounds.min.x),
|
||||
height = 0,//Math.abs(bounds.max.y - bounds.min.y),
|
||||
width = Math.abs(bounds.max.x - bounds.min.x),
|
||||
height = Math.abs(bounds.max.y - bounds.min.y),
|
||||
sw = map.unproject(new L.Point(bounds.min.x - width, bounds.min.y - height)),
|
||||
ne = map.unproject(new L.Point(bounds.max.x + width, bounds.max.y + height));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user