From ae4053bafd9e88b4bf05fb1a81730fc8c3f75844 Mon Sep 17 00:00:00 2001 From: Mart-0 Date: Wed, 12 Oct 2022 15:32:07 +0200 Subject: [PATCH] fix: sql and forgot to remove one zoom line --- project.mml | 6 +++--- style/tourism.mss | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/project.mml b/project.mml index c9aafc2f94..e60411a5e0 100644 --- a/project.mml +++ b/project.mml @@ -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 @@ -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 diff --git a/style/tourism.mss b/style/tourism.mss index a4da86c5a0..1bb0d00353 100644 --- a/style/tourism.mss +++ b/style/tourism.mss @@ -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; }