Keep geolocation displayed, even if it isn't known anymore

This commit is contained in:
Pieter Vander Vennet 2022-12-31 01:56:39 +01:00
parent 8511794ef3
commit b81fa14999

View file

@ -120,9 +120,9 @@ export default class GeoLocationHandler {
const state = this._state
this.geolocationState.currentGPSLocation.addCallbackAndRun((location) => {
if (location === undefined) {
state.currentUserLocation?.features?.setData([])
return
}
console.log("GeoLocationCoordinates are", location)
const feature = {
type: "Feature",
properties: <GeoLocationPointProperties>{