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

Adding rendering for information=visitor_centre #4796

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
2 changes: 1 addition & 1 deletion project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ Layer:
OR (boundary = 'protected_area' AND tags->'protect_class' IN ('1','1a','1b','2','3','4','5','6'))
THEN boundary END,
'leisure_' || CASE WHEN leisure IN ('nature_reserve') THEN leisure END,
'tourism_' || CASE WHEN tourism IN ('information') AND tags->'information' IN ('audioguide', 'board', 'guidepost', 'office', 'map', 'tactile_map', 'terminal') THEN tourism END,
'tourism_' || CASE WHEN tourism IN ('information') AND tags->'information' IN ('audioguide', 'board', 'guidepost', 'office', 'visitor_centre', 'map', 'tactile_map', 'terminal') THEN tourism END,
'office' || CASE WHEN tags->'office' IN ('no', 'vacant', 'closed', 'disused', 'empty') OR (tags->'office') IS NULL THEN NULL ELSE '' END,
'barrier_' || CASE WHEN barrier IN ('toll_booth') AND way_area IS NULL THEN barrier END,
'waterway_' || CASE WHEN waterway IN ('dam', 'weir', 'dock') THEN waterway END,
Expand Down
12 changes: 9 additions & 3 deletions style/amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@
}

[feature = 'tourism_information'][zoom >= 19],
[feature = 'tourism_information']["information"='office'][zoom >= 17] {
[feature = 'tourism_information']["information"='office'][zoom >= 17],
[feature = 'tourism_information']["information"='visitor_centre'][zoom >= 17] {
[information = 'audioguide'] {
marker-file: url('symbols/tourism/audioguide.svg');
}
Expand All @@ -398,6 +399,10 @@
marker-file: url('symbols/tourism/office.svg');
marker-fill: @amenity-brown;
}
[information = 'visitor_centre'] {
marker-file: url('symbols/tourism/visitor_centre.svg');
marker-fill: @amenity-brown;
}
[information = 'map'],
[information = 'tactile_map'] {
marker-file: url('symbols/tourism/map.svg');
Expand Down Expand Up @@ -1880,13 +1885,14 @@
}

[feature = 'tourism_information'][information != 'board'][zoom >= 19],
[feature = 'tourism_information'][information = 'office'][zoom >= 17] {
[feature = 'tourism_information'][information = 'office'][zoom >= 17],
[feature = 'tourism_information'][information = 'visitor_centre'][zoom >= 17] {
text-name: "[name]";
text-size: @standard-font-size;
text-wrap-width: @standard-wrap-width;
text-line-spacing: @standard-line-spacing-size;
text-fill: darken(black, 30%);
[information = 'office'] { text-fill: @amenity-brown; }
[information = 'office'], [information = 'visitor_centre'] { text-fill: @amenity-brown; }
text-face-name: @standard-font;
text-halo-radius: @standard-halo-radius;
text-halo-fill: @standard-halo-fill;
Expand Down
16 changes: 16 additions & 0 deletions symbols/tourism/visitor_centre.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.