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

[WIP] Borders for archeological site polygons. #3959

Closed
wants to merge 4 commits into from
Closed
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
20 changes: 19 additions & 1 deletion amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,6 @@
[feature = 'amenity_cinema'],
[feature = 'amenity_arts_centre'],
[feature = 'amenity_community_centre'],
[feature = 'historic_archaeological_site'],
[feature = 'amenity_nightclub'] {
[zoom >= 17] {
text-name: "[name]";
Expand All @@ -1667,6 +1666,25 @@
}
}

// this has to be kept in sync with the @culture block up there
// and the filters for #tourism-boundary in landcover.mss
// note that landcover already filters achaelogical sites that are touristic attractions
[feature = 'historic_archaeological_site'][way_pixels >= 750][zoom >= 10],
[feature = 'historic_archaeological_site'][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: @culture;
[zoom >= 17] {
// allow space for the symbol
text-dy: 11;
}
text-face-name: @standard-font;
text-halo-radius: @standard-halo-radius;
text-halo-fill: @standard-halo-fill;
}

[feature = 'amenity_public_bath'][zoom >= 17] {
text-name: "[name]";
text-size: @standard-font-size;
Expand Down
2 changes: 2 additions & 0 deletions landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,8 @@
#tourism-boundary {
[tourism = 'zoo'][zoom >= 10][way_pixels >= 750],
[tourism = 'zoo'][zoom >= 17],
[historic = 'archaeological_site'][zoom >= 10][way_pixels >= 750],
[historic = 'archaeological_site'][zoom >= 17],
[tourism = 'theme_park'][zoom >= 10][way_pixels >= 750],
[tourism = 'theme_park'][zoom >= 17] {
a/line-width: 1;
Expand Down
4 changes: 3 additions & 1 deletion project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,12 @@ Layer:
way,
way_area/NULLIF(POW(!scale_denominator!*0.001*0.28,2),0) AS way_pixels,
name,
tourism
tourism,
historic
FROM planet_osm_polygon
WHERE tourism = 'theme_park'
OR tourism = 'zoo'
OR (historic = 'archaeological_site' and tourism='attraction')
) AS tourism_boundary
properties:
minzoom: 10
Expand Down