Improve geolocation message

This commit is contained in:
Pieter Vander Vennet 2024-08-12 10:04:28 +02:00
parent 7a27075adb
commit ba6027dda3
2 changed files with 5 additions and 4 deletions

View file

@ -81,13 +81,13 @@ export class GeolocationControlState {
return
}
// A location _is_ known! Let's move to this location
const currentLocation = geolocationState.currentGPSLocation.data
if (currentLocation === undefined) {
// No location is known yet, not much we can do
lastClick.setData(new Date())
return
}
// A location _is_ known! Let's move to this location
const inBounds = state.bounds.data.contains([
currentLocation.longitude,
currentLocation.latitude,