From 9454612764f89caf311480db9cf17768c27d0e5d Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:11:57 -0400 Subject: [PATCH] Add park polygons to trail tiles since we want to visualize things like access and operator in OTM --- renderer/layers/trails.yml | 42 +++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/renderer/layers/trails.yml b/renderer/layers/trails.yml index 865b683..38f736f 100644 --- a/renderer/layers/trails.yml +++ b/renderer/layers/trails.yml @@ -403,22 +403,6 @@ layers: - guidepost man_made: cairn attributes: *poi_attributes - # gather protected areas as points - - source: osm - geometry: polygon_centroid_if_convex - min_zoom: 4 - min_size: 15 - include_when: - __all__: - - name: __any__ - - __any__: - - leisure: - - park - - nature_reserve - - boundary: - - national_park - - protected_area - attributes: *poi_attributes - source: osm geometry: point min_zoom: 8 @@ -486,6 +470,32 @@ layers: monitoring:tide_gauge: yes monitoring:flow_rate: yes attributes: *poi_attributes + - id: park + features: + # gather protected areas as polygons + - source: osm + geometry: polygon + min_zoom: 4 + min_size: 0.5 + include_when: + &parks_filter + __all__: + - name: __any__ + - __any__: + - leisure: + - park + - nature_reserve + - boundary: + - national_park + - protected_area + attributes: *poi_attributes + # gather protected areas as points + - source: osm + geometry: polygon_centroid_if_convex + min_zoom: 4 + min_size: 15 + include_when: *parks_filter + attributes: *poi_attributes args: area: description: Geofabrik area to download