forked from MapComplete/MapComplete
Themes(sauna): add sauna question to sports centre
This commit is contained in:
parent
c701247066
commit
5f932c80a3
3 changed files with 33 additions and 2 deletions
|
@ -1446,7 +1446,8 @@
|
||||||
"it": "Quali sport si praticano in questa struttura?",
|
"it": "Quali sport si praticano in questa struttura?",
|
||||||
"cs": "Jaké sporty se provozují na tomto sportovišti?"
|
"cs": "Jaké sporty se provozují na tomto sportovišti?"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"sauna_at_leisure.sauna_grouped"
|
||||||
],
|
],
|
||||||
"filter": [
|
"filter": [
|
||||||
"open_now"
|
"open_now"
|
||||||
|
|
|
@ -37,6 +37,32 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"builtin": "sports_centre",
|
||||||
|
"override": {
|
||||||
|
"minzoom": 8,
|
||||||
|
"id": "sports_centre_with_sauna",
|
||||||
|
"presets=": [],
|
||||||
|
"filter=":[],
|
||||||
|
"source": {
|
||||||
|
"osmTags": {
|
||||||
|
"and+": [
|
||||||
|
"sauna=yes"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"builtin": "sports_centre",
|
||||||
|
"override": {
|
||||||
|
"name": null,
|
||||||
|
"minzoom": 18,
|
||||||
|
"filter": {
|
||||||
|
"sameAs": "sports_centre_with_sauna"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"builtin": "shops",
|
"builtin": "shops",
|
||||||
"override": {
|
"override": {
|
||||||
|
|
|
@ -505,7 +505,11 @@ class WarnForUnsubstitutedLayersInTheme extends DesugaringStep<ThemeConfigJson>
|
||||||
if (layer["builtin"] !== undefined) {
|
if (layer["builtin"] !== undefined) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if (layer["source"]["geojson"] !== undefined) {
|
if(layer["override"]!==undefined){
|
||||||
|
context.err("Got an `override` block without a `builtin`-specification")
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if (layer["source"]?.["geojson"] !== undefined) {
|
||||||
// We turn a blind eye for import layers
|
// We turn a blind eye for import layers
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue