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