From d50cc2b482690afe95043fd8ca9411069d26df17 Mon Sep 17 00:00:00 2001 From: JonathanBittner Date: Thu, 10 Mar 2022 10:55:52 -0500 Subject: [PATCH 1/3] Do not render monorail stations Disables labels for monorail stations in the station labeling layers. --- standard_labels.mss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/standard_labels.mss b/standard_labels.mss index c620f562..b437ae4a 100644 --- a/standard_labels.mss +++ b/standard_labels.mss @@ -40,11 +40,11 @@ #railway_text_stations_med[zoom>=6][zoom<=10], #railway_text_stations_high[zoom>=11] { - [railway = 'station'][station != 'light_rail'][station != 'subway'][station != 'funicular'][zoom <= 9], + [railway = 'station'][station != 'light_rail'][station != 'subway'][station != 'funicular'][station != 'monorail'][zoom <= 9], [railway = 'tram_stop'][zoom >= 14], - [railway = 'station'][station != 'funicular'][zoom >= 10], - [railway = 'halt'][station != 'funicular'][zoom >= 10], - [railway != 'tram_stop'][station != 'funicular'][zoom >= 11] { + [railway = 'station'][station != 'funicular'][station != 'monorail'][zoom >= 10], + [railway = 'halt'][station != 'funicular'][station != 'monorail'][zoom >= 10], + [railway != 'tram_stop'][station != 'funicular'][station != 'monorail'][zoom >= 11] { text-name: '[label]'; text-face-name: @bold-fonts; text-size: @text-station-size; From 14a326030e542c16515716e1663e29ad789fedf9 Mon Sep 17 00:00:00 2001 From: Jonathan Bittner Date: Mon, 14 Mar 2022 14:18:10 -0400 Subject: [PATCH 2/3] Do not render monorail stations. Disable labels for monorail stations in the station labeling layers. --- standard.mml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/standard.mml b/standard.mml index fadbb652..515c9424 100644 --- a/standard.mml +++ b/standard.mml @@ -335,7 +335,7 @@ Layer: <<: *osm2pgsql table: |- (SELECT - way, railway, station, + way, railway, station, monorail, CASE WHEN railway = 'station' AND station = 'light_rail' THEN 450 WHEN railway = 'station' AND station = 'subway' THEN 400 WHEN railway = 'station' THEN 800 @@ -357,6 +357,7 @@ Layer: railway, route_count, tags->'station' AS station, + tags->'monorail' AS monorail, tags->'railway:ref' AS label FROM stations_with_route_counts WHERE railway IN ('station', 'halt', 'service_station', 'yard', 'junction', 'spur_junction', 'crossover', 'site') @@ -374,7 +375,7 @@ Layer: <<: *osm2pgsql table: |- (SELECT - way, railway, station, + way, railway, station, monorail, CASE WHEN railway = 'station' AND station = 'light_rail' THEN 450 WHEN railway = 'station' AND station = 'subway' THEN 400 WHEN railway = 'station' THEN 800 @@ -401,6 +402,7 @@ Layer: ELSE route_count::int END AS route_count, tags->'station' AS station, + tags->'monorail' AS monorail, COALESCE(tags->'short_name', name) AS label FROM stations_with_route_counts WHERE railway IN ('station', 'halt', 'service_station', 'yard', 'junction', 'spur_junction', 'crossover', 'site', 'tram_stop') From cd9c4cd3c42d1ed45c31c1f64b5f3aa9024a6e4d Mon Sep 17 00:00:00 2001 From: Jonathan Bittner Date: Thu, 31 Mar 2022 12:02:09 -0400 Subject: [PATCH 3/3] Do not render monorail stations Disable labels for monorail stations in the station labeling layers. --- standard_labels.mss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/standard_labels.mss b/standard_labels.mss index b437ae4a..38dfa661 100644 --- a/standard_labels.mss +++ b/standard_labels.mss @@ -40,11 +40,11 @@ #railway_text_stations_med[zoom>=6][zoom<=10], #railway_text_stations_high[zoom>=11] { - [railway = 'station'][station != 'light_rail'][station != 'subway'][station != 'funicular'][station != 'monorail'][zoom <= 9], + [railway = 'station'][station != 'light_rail'][station != 'subway'][station != 'funicular'][station != 'monorail'][monorail != 'yes'][zoom <= 9], [railway = 'tram_stop'][zoom >= 14], - [railway = 'station'][station != 'funicular'][station != 'monorail'][zoom >= 10], + [railway = 'station'][station != 'funicular'][station != 'monorail'][monorail != 'yes'][zoom >= 10], [railway = 'halt'][station != 'funicular'][station != 'monorail'][zoom >= 10], - [railway != 'tram_stop'][station != 'funicular'][station != 'monorail'][zoom >= 11] { + [railway != 'tram_stop'][station != 'funicular'][station != 'monorail'][monorail != 'yes'][zoom >= 11] { text-name: '[label]'; text-face-name: @bold-fonts; text-size: @text-station-size;