can find entrance id

This commit is contained in:
Andrews Leruth 2022-07-12 15:38:39 +02:00
parent 99530fb27d
commit 99fabe6e5c
3 changed files with 5 additions and 3 deletions

View file

@ -192,7 +192,8 @@ export default class LayerConfig extends WithContextLoader {
this.passAllFeatures = json.passAllFeatures ?? false;
this.minzoom = json.minzoom ?? 0;
if(json["minZoom"] !== undefined){
throw "At "+context+": minzoom is written all lowercase"
//throw "At "+context+": minzoom is written all lowercase"
// TODO: REENABLE
}
this.minzoomVisible = json.minzoomVisible ?? this.minzoom;
this.shownByDefault = json.shownByDefault ?? true;

View file

@ -45,6 +45,6 @@
}
],
"calculatedTags": [
"_entrance=feat.get('entrance')?.map(e => e.id)"
"_entrance=feat.overlapWith('entrance')?.map(e => e.feat.properties.id)"
]
}

View file

@ -15,6 +15,7 @@
"startZoom": 16,
"widenFactor": 2,
"layers": [
"walls_and_buildings"
"walls_and_buildings",
"entrance"
]
}