Skip to content

Commit

Permalink
Adding rendering for amenity=parking_space
Browse files Browse the repository at this point in the history
  • Loading branch information
kocio-pl committed Mar 27, 2018
1 parent 94fe461 commit dcc7137
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
@apron: #e9d1ff;
@garages: #dfddce;
@parking: #eeeeee;
@parking-outline: saturate(darken(@parking, 40%), 20%);
@railway: @industrial;
@railway-line: @industrial-line;
@rest_area: #efc8c8; // also services
Expand Down Expand Up @@ -548,11 +549,16 @@
polygon-fill: @parking;
[zoom >= 15] {
line-width: 0.3;
line-color: saturate(darken(@parking, 40%), 20%);
line-color: @parking-outline;
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}

[feature = 'amenity_parking_space'][zoom >= 18] {
line-width: 0.3;
line-color: mix(@parking-outline, @parking, 50%);
}

[feature = 'aeroway_apron'][zoom >= 10] {
polygon-fill: @apron;
Expand Down
4 changes: 2 additions & 2 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Layer:
('aeroway_' || (CASE WHEN aeroway IN ('apron', 'aerodrome') THEN aeroway ELSE NULL END)) AS aeroway,
('amenity_' || (CASE WHEN amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'university', 'college', 'school',
'hospital', 'kindergarten', 'grave_yard', 'prison', 'place_of_worship', 'clinic', 'ferry_terminal',
'marketplace', 'community_centre', 'social_facility', 'arts_centre', 'shower', 'bbq')
'marketplace', 'community_centre', 'social_facility', 'arts_centre', 'shower', 'bbq', 'parking_space')
THEN amenity ELSE NULL END)) AS amenity,
('landuse_' || (CASE WHEN landuse IN ('quarry', 'vineyard', 'orchard', 'cemetery', 'residential', 'garages', 'meadow', 'grass',
'allotments', 'forest', 'farmyard', 'farmland', 'greenhouse_horticulture',
Expand All @@ -144,7 +144,7 @@ Layer:
OR aeroway IN ('apron', 'aerodrome')
OR amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'university', 'college', 'school', 'hospital', 'kindergarten',
'grave_yard', 'place_of_worship', 'prison', 'clinic', 'ferry_terminal', 'marketplace', 'community_centre', 'social_facility',
'arts_centre', 'shower', 'bbq')
'arts_centre', 'shower', 'bbq', 'parking_space')
OR man_made IN ('works')
OR military IN ('danger_area')
OR "natural" IN ('beach', 'shoal', 'heath', 'mud', 'marsh', 'wetland', 'grassland', 'wood', 'sand', 'scree', 'shingle', 'bare_rock', 'scrub')
Expand Down

0 comments on commit dcc7137

Please sign in to comment.