can find entrance id
This commit is contained in:
parent
99530fb27d
commit
99fabe6e5c
3 changed files with 5 additions and 3 deletions
|
@ -192,7 +192,8 @@ export default class LayerConfig extends WithContextLoader {
|
||||||
this.passAllFeatures = json.passAllFeatures ?? false;
|
this.passAllFeatures = json.passAllFeatures ?? false;
|
||||||
this.minzoom = json.minzoom ?? 0;
|
this.minzoom = json.minzoom ?? 0;
|
||||||
if(json["minZoom"] !== undefined){
|
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.minzoomVisible = json.minzoomVisible ?? this.minzoom;
|
||||||
this.shownByDefault = json.shownByDefault ?? true;
|
this.shownByDefault = json.shownByDefault ?? true;
|
||||||
|
|
|
@ -45,6 +45,6 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"calculatedTags": [
|
"calculatedTags": [
|
||||||
"_entrance=feat.get('entrance')?.map(e => e.id)"
|
"_entrance=feat.overlapWith('entrance')?.map(e => e.feat.properties.id)"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -15,6 +15,7 @@
|
||||||
"startZoom": 16,
|
"startZoom": 16,
|
||||||
"widenFactor": 2,
|
"widenFactor": 2,
|
||||||
"layers": [
|
"layers": [
|
||||||
"walls_and_buildings"
|
"walls_and_buildings",
|
||||||
|
"entrance"
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue