Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
draw oneway-arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Oct 28, 2018
1 parent 1019b8f commit 118a08a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ global:

boundary_color: '#e66'

oneway_arrow_color: '#444'
name_source: |
function() {
// Use preferred language label if available
Expand Down Expand Up @@ -68,3 +69,10 @@ fonts:
url: fonts/Montserrat-Medium.woff
- weight: 700
url: fonts/Montserrat-Bold.woff

textures:
oneway-arrow:
url: images/[email protected]
# url: https://raw.githubusercontent.com/ENT8R/streetcomplete-mapstyle/master/images/[email protected]
filtering: mipmap
density: 5
Binary file added images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions layers/roads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,20 @@ layers:
color: global.path_outline_color
width: function () { return 1/4 * Math.log($zoom); }
order: 200

oneway:
filter: { oneway: yes, $zoom: { min: 17 } }
draw:
oneway-arrow:
flat: true
buffer: 2px
color: global.oneway_arrow_color
size: [[17, [6px, auto]], [20, [24px, auto]]]
placement: spaced
placement_spacing: [[17, 40px], [20, 120px]]
angle: auto
text:
visible: false
styles:
step_dashes:
base: lines
Expand All @@ -120,3 +134,6 @@ styles:
lines-railway-style:
base: lines
blend: opaque
oneway-arrow:
base: points
texture: oneway-arrow
1 change: 1 addition & 0 deletions streetcomplete-dark-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ global:

boundary_color: '#e46'

oneway_arrow_color: '#ccf'
styles:
lines-railway-style:
base: lines
Expand Down
1 change: 1 addition & 0 deletions streetcomplete-light-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ global:

boundary_color: '#e66'

oneway_arrow_color: '#444'
styles:
buildings-style:
base: polygons
Expand Down

0 comments on commit 118a08a

Please sign in to comment.