From 6760897a6f6427755b63c8cc7da37b9d39279083 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 5 Oct 2023 14:00:12 +0200 Subject: [PATCH] Themes: show toilets only from zoomlevel >= 15 --- assets/layers/transit_stops/transit_stops.json | 7 ------- assets/themes/climbing/climbing.json | 10 +++++++--- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/assets/layers/transit_stops/transit_stops.json b/assets/layers/transit_stops/transit_stops.json index 6b663f21f2..8a20356033 100644 --- a/assets/layers/transit_stops/transit_stops.json +++ b/assets/layers/transit_stops/transit_stops.json @@ -55,13 +55,6 @@ "label": "
{name}
" } ], - "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 => `
  • ${p.name ?? 'bus route'}
  • `).join('')", - "_contained_routes_count=JSON.parse(feat.properties._contained_routes_properties ?? '[]').length" - ], "tagRenderings": [ { "id": "stop_name", diff --git a/assets/themes/climbing/climbing.json b/assets/themes/climbing/climbing.json index e139cc7e9a..f02d60ce40 100644 --- a/assets/themes/climbing/climbing.json +++ b/assets/themes/climbing/climbing.json @@ -461,8 +461,12 @@ ] } }, - "drinking_water", - "toilet" + { + "builtin": ["toilet","drinking_water"], + "override": { + "minzoom": 15 + } + } ], "credits": "Christian Neumann " -} \ No newline at end of file +}