From 0306a2881100b8551c21b3e410d9db6ccbcf81f8 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sat, 10 Jul 2021 21:07:27 +0200 Subject: [PATCH] Disable zoom and fade animations on minimaps --- UI/Base/Minimap.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UI/Base/Minimap.ts b/UI/Base/Minimap.ts index 647fade47..73bf2354a 100644 --- a/UI/Base/Minimap.ts +++ b/UI/Base/Minimap.ts @@ -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(