Skip to content

Commit

Permalink
Added rendering for amenity=parking_entrance (gravitystorm#2875).
Browse files Browse the repository at this point in the history
  • Loading branch information
johsin18 committed Nov 9, 2018
1 parent 4d6ff27 commit f1b8157
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,8 @@

[feature = 'amenity_parking'][way_pixels > 900],
[feature = 'amenity_bicycle_parking'][way_pixels > 900],
[feature = 'amenity_motorcycle_parking'][way_pixels > 900] {
[feature = 'amenity_motorcycle_parking'][way_pixels > 900],
[feature = 'amenity_parking_entrance'][zoom >= 18] {
[feature = 'amenity_parking'] {
marker-file: url('symbols/amenity/parking.svg');
}
Expand All @@ -586,6 +587,9 @@
[feature = 'amenity_motorcycle_parking'] {
marker-file: url('symbols/amenity/motorcycle_parking.svg');
}
[feature = 'amenity_parking_entrance'] {
marker-file: url('symbols/amenity/parking_entrance.svg');
}
marker-placement: interior;
marker-clip: false;
marker-fill: @transportation-icon;
Expand Down Expand Up @@ -1707,7 +1711,8 @@

[feature = 'amenity_parking'][zoom >= 10][way_pixels > 900],
[feature = 'amenity_bicycle_parking'][zoom >= 10][way_pixels > 900],
[feature = 'amenity_motorcycle_parking'][zoom >= 10][way_pixels > 900] {
[feature = 'amenity_motorcycle_parking'][zoom >= 10][way_pixels > 900],
[feature = 'amenity_parking_entrance'][zoom >= 18] {
text-name: "[name]";
text-size: @standard-font-size;
text-wrap-width: @standard-wrap-width;
Expand Down
2 changes: 2 additions & 0 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -1589,6 +1589,7 @@ Layer:
'prison', 'hunting_stand', 'nightclub', 'veterinary', 'social_facility', 'vehicle_inspection',
'charging_station', 'arts_centre', 'ferry_terminal', 'marketplace', 'shower', 'bbq',
'nursing_home', 'childcare', 'driving_school', 'casino', 'boat_rental', 'bicycle_repair_station') THEN amenity ELSE NULL END,
'amenity_' || CASE WHEN amenity IN ('parking_entrance') AND tags->'parking' IN ('underground') AND (access IS NULL OR access NOT IN ('private', 'no')) THEN amenity ELSE NULL END,
'advertising_' || CASE WHEN tags->'advertising' in ('column') THEN tags->'advertising' else NULL END,
'emergency_' || CASE WHEN tags->'emergency' IN ('phone') THEN tags->'emergency' ELSE NULL END,
'shop' || CASE WHEN shop IN ('no', 'vacant', 'closed', 'disused', 'empty') OR shop IS NULL THEN NULL ELSE '' END,
Expand Down Expand Up @@ -2249,6 +2250,7 @@ Layer:
'drinking_water', 'hunting_stand', 'nightclub', 'veterinary', 'social_facility', 'vehicle_inspection',
'charging_station', 'arts_centre', 'ferry_terminal', 'marketplace', 'shower', 'bbq',
'nursing_home', 'childcare', 'driving_school', 'casino', 'boat_rental', 'bicycle_repair_station') THEN amenity ELSE NULL END,
'amenity_' || CASE WHEN amenity IN ('parking_entrance') AND tags->'parking' IN ('underground') AND (access IS NULL OR access NOT IN ('private', 'no')) THEN amenity ELSE NULL END,
'advertising_' || CASE WHEN tags->'advertising' in ('column') THEN tags->'advertising' else NULL END,
'shop_' || CASE WHEN shop IN ('supermarket', 'bag','bakery', 'beauty', 'bed', 'bookmaker', 'books', 'butcher', 'clothes', 'computer', 'confectionery', 'fashion',
'convenience', 'department_store', 'doityourself', 'hardware', 'fishmonger', 'florist', 'garden_centre', 'hairdresser',
Expand Down

0 comments on commit f1b8157

Please sign in to comment.