mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
build fixes
This commit is contained in:
@@ -186,12 +186,12 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
//Layer should be visible now but isn't on screen, just pan over to it
|
||||
this._map.on('moveend', showMarker, this);
|
||||
if (!layer._icon) {
|
||||
map.panTo(layer.getLatLng());
|
||||
this._map.panTo(layer.getLatLng());
|
||||
}
|
||||
} else {
|
||||
this._map.on('moveend', showMarker, this);
|
||||
this.on('animationend', showMarker, this);
|
||||
map.setView(layer.getLatLng(), layer.__parent._zoom + 1);
|
||||
this._map.setView(layer.getLatLng(), layer.__parent._zoom + 1);
|
||||
layer.__parent.zoomToBounds();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user