Skip to content

Commit

Permalink
Render attraction=water_slide (#3335).
Browse files Browse the repository at this point in the history
  • Loading branch information
johsin18 committed Aug 16, 2018
1 parent 733dc71 commit ca33ce8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
19 changes: 19 additions & 0 deletions amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -2892,6 +2892,25 @@
marker-file: url('symbols/transport_slipway.p.20.svg');
marker-fill: @transportation-icon;
}

[feature = 'attraction_water_slide'] {
[zoom >= 16] {
[zoom >= 17] {
bridgecasing/line-color: saturate(darken(@water-color, 40%), 30%);
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-smooth: 1;
line-width: 1;
[zoom >= 18] { line-width: 2; }
[zoom >= 19] { line-width: 4; }
}
}
}

#trees [zoom >= 16] {
Expand Down
1 change: 1 addition & 0 deletions openstreetmap-carto.style
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ node,way admin_level text linear
node,way aerialway text linear
node,way aeroway text polygon
node,way amenity text polygon
node,way attraction text polygon
node,way barrier text linear
way bicycle text linear
way bridge text linear
Expand Down
5 changes: 4 additions & 1 deletion project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -1562,14 +1562,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 attraction IN ('water_slide') THEN attraction 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 attraction IN ('water_slide')
) AS amenity_line
properties:
minzoom: 16
Expand Down

0 comments on commit ca33ce8

Please sign in to comment.