Skip to content

Commit

Permalink
Merge pull request #2825 from kocio-pl/slipway
Browse files Browse the repository at this point in the history
Adding support for slipway ways
  • Loading branch information
kocio-pl authored Oct 13, 2017
2 parents a50c9f4 + 869770b commit 80f5caf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@
marker-clip: false;
}

// Slipway tagging on points - slipway on lines is defined later
[feature = 'leisure_slipway'][zoom >= 17] {
marker-file: url('symbols/transport_slipway.p.20.svg');
marker-fill: @transportation-icon;
Expand Down Expand Up @@ -2200,6 +2201,11 @@
marker-file: url('symbols/ford.svg');
marker-fill: @transportation-icon;
}
// Slipway tagging on ways
[feature = 'leisure_slipway'][zoom >= 17] {
marker-file: url('symbols/transport_slipway.p.20.svg');
marker-fill: @transportation-icon;
}
}

#trees [zoom >= 16] {
Expand Down
13 changes: 8 additions & 5 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ Layer:
END AS access,
construction,
CASE
WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text
WHEN service IN ('parking_aisle', 'drive-through', 'driveway') OR leisure IN ('slipway') THEN 'INT-minor'::text
ELSE 'INT-normal'::text
END AS service,
CASE
Expand Down Expand Up @@ -725,7 +725,7 @@ Layer:
ELSE NULL
END AS access,
construction,
CASE WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text ELSE 'INT-normal'::text END AS service,
CASE WHEN service IN ('parking_aisle', 'drive-through', 'driveway') OR leisure IN ('slipway') THEN 'INT-minor'::text ELSE 'INT-normal'::text END AS service,
'no' AS link,
COALESCE(layer,0) AS layernotnull,
z_order
Expand Down Expand Up @@ -811,7 +811,7 @@ Layer:
END AS access,
construction,
CASE
WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text
WHEN service IN ('parking_aisle', 'drive-through', 'driveway') OR leisure IN ('slipway') THEN 'INT-minor'::text
ELSE 'INT-normal'::text
END AS service,
CASE
Expand Down Expand Up @@ -843,7 +843,8 @@ Layer:
ELSE NULL
END AS access,
construction,
CASE WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text ELSE 'INT-normal'::text END AS service,
CASE WHEN service IN ('parking_aisle', 'drive-through', 'driveway') OR leisure IN ('slipway') THEN 'INT-minor'::text
ELSE 'INT-normal'::text END AS service,
'no' AS link,
COALESCE(layer,0) AS layernotnull,
z_order
Expand Down Expand Up @@ -1464,11 +1465,13 @@ Layer:
(SELECT
way,
COALESCE(
'highway_' || CASE WHEN tags @> 'ford=>yes' OR tags @> 'ford=>stepping_stones' THEN 'ford' ELSE NULL END
'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
) 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')
) AS amenity_line
properties:
minzoom: 16
Expand Down

0 comments on commit 80f5caf

Please sign in to comment.