From 761b790dbbb721e02018dd9c3949b77bfaf721f6 Mon Sep 17 00:00:00 2001 From: Jamie Date: Sat, 17 Mar 2018 16:33:52 -0400 Subject: [PATCH] Adding shop=diary Related #3087 --- amenity-points.mss | 5 +++++ project.mml | 8 ++++---- symbols/shop/dairy.svg | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 symbols/shop/dairy.svg diff --git a/amenity-points.mss b/amenity-points.mss index 1642646695..3f0d2c8a3b 100644 --- a/amenity-points.mss +++ b/amenity-points.mss @@ -852,6 +852,10 @@ marker-fill: @amenity-brown; } + [shop = 'dairy'][zoom >= 18] { + marker-file: url('symbols/shop/dairy.svg'); + } + [shop = 'bicycle'][zoom >= 18] { marker-file: url('symbols/shop/bicycle.svg'); } @@ -2101,6 +2105,7 @@ [feature = 'shop_car_repair'], [feature = 'shop_car_parts'], [feature = 'shop_cosmetics'], + [feature = 'shop_dairy'], [feature = 'shop_bicycle'], [feature = 'shop_farm'], [feature = 'shop_fishmonger'], diff --git a/project.mml b/project.mml index 7536c7fcd8..84db42b3b4 100644 --- a/project.mml +++ b/project.mml @@ -1479,7 +1479,7 @@ Layer: 'mobile_phone', 'motorcycle', 'musical_instrument', 'newsagent', 'optician', 'jewelry', 'jewellery', 'electronics', 'chemist', 'toys', 'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery', 'laundry', 'dry_cleaning', 'beverages', 'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor', - 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry', 'chocolate') THEN shop + 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry', 'chocolate', 'dairy') THEN shop ELSE 'other' END AS shop, way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels FROM planet_osm_polygon @@ -1593,7 +1593,7 @@ Layer: 'mobile_phone', 'motorcycle', 'musical_instrument', 'newsagent', 'optician', 'jewelry', 'jewellery', 'electronics', 'chemist', 'toys', 'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery', 'laundry', 'dry_cleaning', 'beverages', 'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor', - 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry', 'chocolate') THEN shop + 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry', 'chocolate', 'dairy') THEN shop ELSE 'other' END AS shop, NULL AS way_pixels FROM planet_osm_point @@ -1985,7 +1985,7 @@ Layer: 'musical_instrument', 'newsagent', 'optician', 'jewelry', 'jewellery', 'electronics', 'chemist', 'toys', 'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery', 'laundry', 'dry_cleaning', 'beverages', 'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor', 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', - 'coffee', 'tyres', 'pastry', 'chocolate') THEN shop + 'coffee', 'tyres', 'pastry', 'chocolate', 'dairy') THEN shop WHEN shop IN ('no', 'vacant', 'closed', 'disused', 'empty') OR shop IS NULL THEN NULL ELSE 'other' END, 'leisure_' || CASE WHEN leisure IN ('swimming_pool', 'water_park', 'miniature_golf', 'golf_course', 'fitness_centre', 'sports_centre', 'stadium', 'track', 'pitch', 'playground', 'park', 'recreation_ground', 'common', 'garden', 'nature_reserve', 'marina', @@ -2128,7 +2128,7 @@ Layer: 'newsagent', 'optician', 'jewelry', 'jewellery', 'electronics', 'chemist', 'toys', 'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery', 'laundry', 'dry_cleaning', 'beverages', 'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor', 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', - 'pastry', 'chocolate') THEN shop + 'pastry', 'chocolate', 'dairy') THEN shop WHEN shop IN ('no', 'vacant', 'closed', 'disused', 'empty') OR shop IS NULL THEN NULL ELSE 'other' END, 'leisure_' || CASE WHEN leisure IN ('swimming_pool', 'water_park', 'miniature_golf', 'golf_course', 'fitness_centre', 'sports_centre', 'stadium', 'track', 'pitch','playground', 'park', 'recreation_ground', 'common', 'garden', 'nature_reserve', 'marina', diff --git a/symbols/shop/dairy.svg b/symbols/shop/dairy.svg new file mode 100644 index 0000000000..c57d94ae63 --- /dev/null +++ b/symbols/shop/dairy.svg @@ -0,0 +1,36 @@ + + + + + + image/svg+xml + + + + + + + + + +