forked from MapComplete/MapComplete
Themes: show toilets only from zoomlevel >= 15
This commit is contained in:
parent
44c57cc647
commit
6760897a6f
2 changed files with 7 additions and 10 deletions
|
@ -55,13 +55,6 @@
|
||||||
"label": "<div style=\"background: white; display: block\">{name}</div>"
|
"label": "<div style=\"background: white; display: block\">{name}</div>"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"calculatedTags": [
|
|
||||||
"_routes=feat.memberships()",
|
|
||||||
"_contained_routes_properties=feat.memberships().map(p => {return {id: p.relation.id, name: p.relation.properties.name} }).filter((v,i,a)=>a.findIndex(t=>(JSON.stringify(t) === JSON.stringify(v)))===i)",
|
|
||||||
"_contained_route_ids=JSON.parse(feat.properties._contained_routes_properties ?? '[]').map(p => p.id)",
|
|
||||||
"_contained_routes=JSON.parse(feat.properties._contained_routes_properties ?? '[]').map(p => `<li><a href='#relation/${p.id}'>${p.name ?? 'bus route'}</a></li>`).join('')",
|
|
||||||
"_contained_routes_count=JSON.parse(feat.properties._contained_routes_properties ?? '[]').length"
|
|
||||||
],
|
|
||||||
"tagRenderings": [
|
"tagRenderings": [
|
||||||
{
|
{
|
||||||
"id": "stop_name",
|
"id": "stop_name",
|
||||||
|
|
|
@ -461,8 +461,12 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"drinking_water",
|
{
|
||||||
"toilet"
|
"builtin": ["toilet","drinking_water"],
|
||||||
|
"override": {
|
||||||
|
"minzoom": 15
|
||||||
|
}
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"credits": "Christian Neumann <christian@utopicode.de>"
|
"credits": "Christian Neumann <christian@utopicode.de>"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue