forked from MapComplete/MapComplete
Stabilize popup
This commit is contained in:
parent
729f28fbf5
commit
292bad5df7
6 changed files with 74 additions and 45 deletions
|
@ -34,7 +34,7 @@ export default class FilteringFeatureSource implements FeatureSource {
|
|||
const newFeatures = features.filter(f => {
|
||||
const layerId = f.feature._matching_layer_id;
|
||||
|
||||
if(selectedElement.data === f.feature){
|
||||
if(selectedElement.data !== undefined && selectedElement.data?.id === f.feature.id){
|
||||
// This is the selected object - it gets a free pass even if zoom is not sufficient
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue