forked from MapComplete/MapComplete
Zoom in on right click
This commit is contained in:
parent
02981b1982
commit
2583790483
1 changed files with 1 additions and 0 deletions
|
@ -414,6 +414,7 @@ export default class MinimapImplementation extends BaseUIElement implements Mini
|
||||||
map.on("contextmenu", function (e) {
|
map.on("contextmenu", function (e) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
lastClickLocation?.setData({ lat: e.latlng.lat, lon: e.latlng.lng })
|
lastClickLocation?.setData({ lat: e.latlng.lat, lon: e.latlng.lng })
|
||||||
|
map.setZoom(map.getZoom() + 1)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue