Skip to content

Commit

Permalink
render lock_name (#3236)
Browse files Browse the repository at this point in the history
  • Loading branch information
jragusa authored and kocio-pl committed May 19, 2018
1 parent 41939bc commit f8a0f52
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -2500,6 +2500,7 @@ Layer:
waterway,
lock,
name,
tags-> 'lock_name' AS lock_name,
CASE WHEN tags->'intermittent' IN ('yes')
OR tags->'seasonal' IN ('yes', 'spring', 'summer', 'autumn', 'winter', 'wet_season', 'dry_season')
THEN 'yes' ELSE 'no' END AS int_intermittent,
Expand Down
11 changes: 11 additions & 0 deletions water.mss
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,17 @@
}

#water-lines-text {
[lock = 'yes'][zoom >= 17] {
text-name: "[lock_name]";
text-face-name: @oblique-fonts;
text-placement: line;
text-fill: @water-text;
text-spacing: 400;
text-size: 10;
text-halo-radius: @standard-halo-radius;
text-halo-fill: @standard-halo-fill;
}

[lock != 'yes'][int_tunnel != 'yes'] {
[waterway = 'river'][zoom >= 13] {
text-name: "[name]";
Expand Down

0 comments on commit f8a0f52

Please sign in to comment.