forked from MapComplete/MapComplete
Keep geolocation displayed, even if it isn't known anymore
This commit is contained in:
parent
8511794ef3
commit
b81fa14999
1 changed files with 1 additions and 1 deletions
|
@ -120,9 +120,9 @@ export default class GeoLocationHandler {
|
||||||
const state = this._state
|
const state = this._state
|
||||||
this.geolocationState.currentGPSLocation.addCallbackAndRun((location) => {
|
this.geolocationState.currentGPSLocation.addCallbackAndRun((location) => {
|
||||||
if (location === undefined) {
|
if (location === undefined) {
|
||||||
state.currentUserLocation?.features?.setData([])
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
console.log("GeoLocationCoordinates are", location)
|
||||||
const feature = {
|
const feature = {
|
||||||
type: "Feature",
|
type: "Feature",
|
||||||
properties: <GeoLocationPointProperties>{
|
properties: <GeoLocationPointProperties>{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue