Skip to content

Commit

Permalink
Remove protected area fill color (#3887)
Browse files Browse the repository at this point in the history
Removes the translucent green fill from protected areas at z8-z10.
Defines a new `@protected-area` color in `#008000` instead of just using "green"
Changed protected area text to `@protected-area` color instead of park color
  • Loading branch information
meased authored and jeisenbe committed Dec 15, 2019
1 parent 132f0d0 commit 9b82c0e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
32 changes: 11 additions & 21 deletions admin.mss
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ overlapping borders correctly.
#protected-areas-text[zoom >= 13][way_pixels > 192000] {
text-name: "[name]";
text-face-name: @book-fonts;
text-fill: green;
text-fill: @protected-area;
[boundary='aboriginal_lands'],
[boundary='protected_area'][protect_class='24'] {
text-fill: @aboriginal;
Expand All @@ -253,25 +253,15 @@ overlapping borders correctly.
#protected-areas {
[way_pixels > 750] {
[zoom >= 8][zoom < 10] {
::fill {
opacity: 0.05;
polygon-fill: green;
[boundary='aboriginal_lands'],
[boundary='protected_area'][protect_class='24'] {
polygon-fill: @aboriginal;
}
opacity: 0.25;
line-width: 1.2;
line-color: @protected-area;
[boundary='aboriginal_lands'],
[boundary='protected_area'][protect_class='24'] {
line-color: @aboriginal;
}
::outline {
opacity: 0.25;
line-width: 1.2;
line-color: green;
[boundary='aboriginal_lands'],
[boundary='protected_area'][protect_class='24'] {
line-color: @aboriginal;
}
[zoom >= 9] {
line-width: 1.5;
}
[zoom >= 9] {
line-width: 1.5;
}
}
[zoom >= 10] {
Expand All @@ -286,7 +276,7 @@ overlapping borders correctly.
// also applies to inner rings of multipolygons.) So a negative
// line-offset is always an offset to the inner side of the polygon.
line-offset: -0.9;
line-color: green;
line-color: @protected-area;
[boundary='aboriginal_lands'],
[boundary='protected_area'][protect_class='24'] {
line-color: @aboriginal;
Expand All @@ -306,7 +296,7 @@ overlapping borders correctly.
::narrowline {
opacity: 0.15;
line-width: 1.8;
line-color: green;
line-color: @protected-area;
[boundary='aboriginal_lands'],
[boundary='protected_area'][protect_class='24'] {
line-color: @aboriginal;
Expand Down
3 changes: 2 additions & 1 deletion amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@barrier-icon: #3f3f3f;
@landform-color: #d08f55;
@leisure-green: darken(@park, 60%);
@protected-area: #008000;
@aboriginal: #82643a;
@religious-icon: #000000;

Expand Down Expand Up @@ -2070,7 +2071,7 @@
[feature = 'boundary_national_park'],
[feature = 'leisure_nature_reserve'],
[feature = 'boundary_protected_area'] {
text-fill: darken(@park, 70%);
text-fill: @protected-area;
}
}
}
Expand Down

0 comments on commit 9b82c0e

Please sign in to comment.