Geolocation: improve handle on click
This commit is contained in:
parent
a31ec42b67
commit
3ebe1293e0
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue