UX: add helper for gps selector

This commit is contained in:
Pieter Vander Vennet 2025-06-07 04:46:43 +02:00
parent c215051ec5
commit 886b25c0b4
4 changed files with 108 additions and 6 deletions

View file

@ -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)
}
}