Skip to content

Commit

Permalink
Manually check for areas so barriers aren't rendered twice
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Nov 11, 2024
1 parent 6ed6cfc commit a1d8d06
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions renderer/layers/trails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -575,12 +575,17 @@ layers:
geometry: polygon
min_zoom: 7
min_size: 1
include_when: &barrier_filter
- man_made: breakwater
- natural: beaver_dam
- waterway:
- dam
- weir
include_when:
- __all__:
- __any__: &barrier_filter
- man_made: breakwater
- natural: beaver_dam
- waterway:
- dam
- weir
- __any__: &area_filter
- area: yes
- type: multipolygon
attributes: &barrier_attributes
- key: OSM_ID
value: "${feature.id}"
Expand Down Expand Up @@ -613,7 +618,10 @@ layers:
geometry: line
min_zoom: 7
min_size: 1
include_when: *barrier_filter
include_when:
- __all__:
- __any__: *barrier_filter
- __not_: *area_filter
attributes: *barrier_attributes
args:
area:
Expand Down

0 comments on commit a1d8d06

Please sign in to comment.