Skip to content

Commit

Permalink
Parking entrance (#3505)
Browse files Browse the repository at this point in the history
  • Loading branch information
johsin18 authored and kocio-pl committed Nov 12, 2018
1 parent cc09eef commit fdf944d
Show file tree
Hide file tree
Showing 3 changed files with 23 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 @@ -593,7 +593,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 @@ -603,6 +604,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 @@ -1743,7 +1747,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 @@ -1590,6 +1590,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 @@ -2251,6 +2252,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
14 changes: 14 additions & 0 deletions symbols/amenity/parking_entrance.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fdf944d

Please sign in to comment.