Skip to content

Commit

Permalink
Water slide (#3346)
Browse files Browse the repository at this point in the history
  • Loading branch information
johsin18 authored and kocio-pl committed Aug 21, 2018
1 parent ed428db commit fd473eb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
33 changes: 33 additions & 0 deletions amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down
5 changes: 4 additions & 1 deletion project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd473eb

Please sign in to comment.