From f8a0f521809c05c6ad0cde91eeecaad72813bd92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Ragusa?= Date: Sat, 19 May 2018 08:28:18 +0200 Subject: [PATCH] render lock_name (#3236) --- project.mml | 1 + water.mss | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/project.mml b/project.mml index 7db6fa5285..18aef486e4 100644 --- a/project.mml +++ b/project.mml @@ -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, diff --git a/water.mss b/water.mss index 4c9c082cc8..c157473163 100644 --- a/water.mss +++ b/water.mss @@ -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]";