Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not render monorail stations #75

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions standard.mml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')
Expand All @@ -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
Expand All @@ -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')
Expand Down
8 changes: 4 additions & 4 deletions standard_labels.mss
Original file line number Diff line number Diff line change
Expand Up @@ -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'][monorail != 'yes'][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'][monorail != 'yes'][zoom >= 10],
[railway = 'halt'][station != 'funicular'][station != 'monorail'][zoom >= 10],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you intentionally skip `[monorail != 'yes'] here?

[railway != 'tram_stop'][station != 'funicular'][station != 'monorail'][monorail != 'yes'][zoom >= 11] {
text-name: '[label]';
text-face-name: @bold-fonts;
text-size: @text-station-size;
Expand Down