From fd473eb30c68849d1aa6dc8cbfbb59eb1fe04320 Mon Sep 17 00:00:00 2001 From: johsin18 Date: Tue, 21 Aug 2018 13:19:44 +0200 Subject: [PATCH] Water slide (#3346) --- amenity-points.mss | 33 +++++++++++++++++++++++++++++++++ project.mml | 5 ++++- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/amenity-points.mss b/amenity-points.mss index c50ec9a29a..1da3376523 100644 --- a/amenity-points.mss +++ b/amenity-points.mss @@ -2910,6 +2910,39 @@ marker-file: url('symbols/transport_slipway.p.20.svg'); marker-fill: @transportation-icon; } + + [feature = 'attraction_water_slide'] { + [zoom >= 16] { + [zoom >= 17] { + bridgecasing/line-color: black; + bridgecasing/line-join: round; + bridgecasing/line-smooth: 1; + bridgecasing/line-width: 1.25; + [zoom >= 18] { bridgecasing/line-width: 2.5; } + [zoom >= 19] { bridgecasing/line-width: 5; } + } + line-color: @pitch; + line-join: round; + line-cap: round; + line-smooth: 1; + line-width: 1; + [zoom >= 18] { line-width: 2; } + [zoom >= 19] { line-width: 4; } + + [zoom >= 19] { + text-name: "[name]"; + text-size: 10; + text-face-name: @oblique-fonts; + text-fill: darken(@pitch, 40%); + text-halo-radius: @standard-halo-radius; + text-halo-fill: @standard-halo-fill; + text-placement: line; + text-vertical-alignment: middle; + text-repeat-distance: @waterway-text-repeat-distance; + text-dy: 8; + } + } + } } #trees [zoom >= 16] { diff --git a/project.mml b/project.mml index eef533a68d..a9cdf8d45f 100644 --- a/project.mml +++ b/project.mml @@ -1563,14 +1563,17 @@ Layer: table: |- (SELECT way, + name, COALESCE( 'highway_' || CASE WHEN tags @> 'ford=>yes' OR tags @> 'ford=>stepping_stones' THEN 'ford' ELSE NULL END, - 'leisure_' || CASE WHEN leisure IN ('slipway') THEN leisure ELSE NULL END + 'leisure_' || CASE WHEN leisure IN ('slipway') THEN leisure ELSE NULL END, + 'attraction_' || CASE WHEN tags @> 'attraction=>water_slide' THEN 'water_slide' ELSE NULL END ) AS feature FROM planet_osm_line -- The upcoming where clause is needed for performance only, as the CASE statements would end up doing the equivalent filtering WHERE tags @> 'ford=>yes' OR tags @> 'ford=>stepping_stones' OR leisure IN ('slipway') + OR tags @> 'attraction=>water_slide' ) AS amenity_line properties: minzoom: 16