forked from MapComplete/MapComplete
UX: add helper for gps selector
This commit is contained in:
parent
c215051ec5
commit
886b25c0b4
4 changed files with 108 additions and 6 deletions
|
@ -131,7 +131,9 @@ export class WithLayoutSourceState extends WithSelectedElementState {
|
|||
|
||||
protected setSelectedElement(feature: Feature) {
|
||||
// The given feature might be a partial one from the cache
|
||||
feature = this.indexedFeatures.featuresById.data?.get(feature.properties.id) ?? feature
|
||||
if(feature !== undefined){
|
||||
feature = this.indexedFeatures.featuresById.data?.get(feature?.properties?.id) ?? feature
|
||||
}
|
||||
super.setSelectedElement(feature)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue