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

Added rendering for ref on public_transport=stop_positions #4800

Open
wants to merge 4 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions project.mml
Expand Up @@ -2240,6 +2240,22 @@ Layer:
) AS protected_areas_text
properties:
minzoom: 13
- id: train-stop-positions
geometry: point
<<: *extents
Datasource:
<<: *osm2pgsql
table: |-
(SELECT
way,
ref
FROM planet_osm_point
WHERE tags @> 'public_transport=>stop_position'
AND tags @> 'train=>yes'
AND ref IS NOT NULL
) AS stop_positions
properties:
minzoom: 18
- id: amenity-low-priority
geometry: point
<<: *extents
Expand Down
19 changes: 19 additions & 0 deletions style/stations.mss
Expand Up @@ -120,3 +120,22 @@
}
}
}

#train-stop-positions {
[zoom >= 18] {
text-name: [ref];
text-face-name: @bold-fonts;
text-fill: @transportation-icon;
text-halo-radius: @standard-halo-radius * 1.5;
text-halo-fill: @standard-halo-fill;
text-wrap-width: 0;
text-size: 11;
[zoom >= 19] {
text-size: 13;
text-halo-radius: @standard-halo-radius * 2.0;
}
[zoom >= 20] {
text-size: 15;
}
}
}