Disable zoom and fade animations on minimaps

This commit is contained in:
pietervdvn 2021-07-10 21:07:27 +02:00
parent 2dbdcaa2ba
commit 0306a28811

View file

@ -44,7 +44,6 @@ export default class Minimap extends BaseUIElement {
const self = this; const self = this;
// @ts-ignore // @ts-ignore
const resizeObserver = new ResizeObserver(_ => { const resizeObserver = new ResizeObserver(_ => {
console.log("Change in size detected!")
self.InitMap(); self.InitMap();
self.leafletMap?.data?.invalidateSize() self.leafletMap?.data?.invalidateSize()
}); });
@ -82,7 +81,9 @@ export default class Minimap extends BaseUIElement {
scrollWheelZoom: this._allowMoving, scrollWheelZoom: this._allowMoving,
doubleClickZoom: this._allowMoving, doubleClickZoom: this._allowMoving,
keyboard: this._allowMoving, keyboard: this._allowMoving,
touchZoom: this._allowMoving touchZoom: this._allowMoving,
zoomAnimation: this._allowMoving,
fadeAnimation: this._allowMoving
}); });
map.setMaxBounds( map.setMaxBounds(