Skip to content

Commit

Permalink
fix: sql and forgot to remove one zoom line
Browse files Browse the repository at this point in the history
  • Loading branch information
tjur0 committed Oct 12, 2022
1 parent eef8ac1 commit ae4053b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ Layer:
table: |-
(SELECT
way,
CASE WHEN (tunnel = 'yes' OR tunnel = 'building_passage' OR covered = 'yes' OR indoor = 'yes') THEN 'yes' ELSE 'no' END AS tunnel,
CASE WHEN (tunnel = 'yes' OR tunnel = 'building_passage' OR covered = 'yes' OR tags->'indoor' = 'yes') THEN 'yes' ELSE 'no' END AS tunnel,
CASE WHEN (bridge = 'yes' OR bridge = 'covered' OR bridge = 'viaduct') THEN 'yes' ELSE 'no' END AS bridge
FROM planet_osm_line
WHERE tags @> 'roller_coaster=>track' AND railway IS NULL
Expand All @@ -1030,9 +1030,9 @@ Layer:
(SELECT
way,
COALESCE(layer,0) AS layernotnull,
CASE WHEN (tunnel = 'yes' OR tunnel = 'building_passage' OR covered = 'yes' OR indoor = 'yes') THEN 'yes' ELSE 'no' END AS tunnel
CASE WHEN (tunnel = 'yes' OR tunnel = 'building_passage' OR covered = 'yes' OR tags->'indoor' = 'yes') THEN 'yes' ELSE 'no' END AS tunnel
FROM planet_osm_line
WHERE tags->'roller_coaster' = 'track' AND railway IS NULL
WHERE tags @> 'roller_coaster=>track' AND railway IS NULL
ORDER BY
layernotnull -- put bottom layered track first
) AS roller_coaster
Expand Down
3 changes: 1 addition & 2 deletions style/tourism.mss
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@

#roller-coaster-casing[zoom >= 15] {
::bridges[bridge = 'yes'] {
line-width: 0.5 + 2*@casing-width-z14;
line-width: 1 + 2*@casing-width-z15;
line-color: darken(@track-casing, 20%);
line-join: round;
line-cap: round;
[zoom >= 15] { line-width: 1 + 2*@casing-width-z15; }
[zoom >= 16] { line-width: 2.5 + 2*@casing-width-z16; }
[zoom >= 17] { line-width: 4 + 2*@casing-width-z17; }
[zoom >= 18] { line-width: 6 + 2*@casing-width-z18; }
Expand Down

0 comments on commit ae4053b

Please sign in to comment.