Skip to content

Commit

Permalink
draw (node) barriers on ways
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Oct 28, 2018
1 parent ffffbbb commit 3fba98b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ global:
boundary_color: '#e66'

oneway_arrow_color: '#444'
barrier_color: '#444'

name_source: |
function() {
// Use preferred language label if available
Expand Down
11 changes: 11 additions & 0 deletions layers/roads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ layers:
angle: auto
text:
visible: false
pois:
data: { source: mapzen }
barrier:
filter: { kind: [gate, bollard, lift_gate, cycle_barrier, stile, block, toll_booth, kissing_gate, swing_gate, chain, cattle_grid, border_control], $zoom: { min: 17 }}
draw:
points:
buffer: 2px
flat: true
color: global.barrier_color
size: [[17, 2px], [20, 16px]]

styles:
step_dashes:
base: lines
Expand Down
2 changes: 2 additions & 0 deletions streetcomplete-dark-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ global:
boundary_color: '#e46'

oneway_arrow_color: '#ccf'
barrier_color: '#ccf'

styles:
lines-railway-style:
base: lines
Expand Down
2 changes: 2 additions & 0 deletions streetcomplete-light-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ global:
boundary_color: '#e66'

oneway_arrow_color: '#444'
barrier_color: '#444'

styles:
buildings-style:
base: polygons
Expand Down

0 comments on commit 3fba98b

Please sign in to comment.