Geolocation: improve handle on click

This commit is contained in:
Pieter Vander Vennet 2024-08-12 10:08:23 +02:00
parent a31ec42b67
commit 3ebe1293e0

View file

@ -34,6 +34,7 @@
let gpsAvailable = geolocation.gpsAvailable let gpsAvailable = geolocation.gpsAvailable
function jumpToCurrentLocation() { function jumpToCurrentLocation() {
state.geolocationControl.handleClick()
const glstate = state.geolocation.geolocationState const glstate = state.geolocation.geolocationState
if (glstate.currentGPSLocation.data !== undefined) { if (glstate.currentGPSLocation.data !== undefined) {
const c: GeolocationCoordinates = glstate.currentGPSLocation.data const c: GeolocationCoordinates = glstate.currentGPSLocation.data