Zoom in on right click

This commit is contained in:
Pieter Vander Vennet 2023-01-05 01:05:04 +01:00
parent 02981b1982
commit 2583790483

View file

@ -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)
})
}