From 2583790483101b7dd166749062f528bf58d91a2f Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 5 Jan 2023 01:05:04 +0100 Subject: [PATCH] Zoom in on right click --- UI/Base/MinimapImplementation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/Base/MinimapImplementation.ts b/UI/Base/MinimapImplementation.ts index 3b6364602..ebb46f033 100644 --- a/UI/Base/MinimapImplementation.ts +++ b/UI/Base/MinimapImplementation.ts @@ -414,6 +414,7 @@ export default class MinimapImplementation extends BaseUIElement implements Mini map.on("contextmenu", function (e) { // @ts-ignore lastClickLocation?.setData({ lat: e.latlng.lat, lon: e.latlng.lng }) + map.setZoom(map.getZoom() + 1) }) }