From 3cf0589c99b755b6d4eadfd0b2119936af704704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ko=C4=87?= Date: Mon, 26 Jun 2017 21:51:59 +0200 Subject: [PATCH] Adding shop=tyres rendering --- amenity-points.mss | 5 +++++ project.mml | 8 ++++---- symbols/shop/tyres.svg | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 symbols/shop/tyres.svg diff --git a/amenity-points.mss b/amenity-points.mss index 85798a9b52..da1ff4c206 100644 --- a/amenity-points.mss +++ b/amenity-points.mss @@ -825,6 +825,10 @@ marker-file: url('symbols/shop/tea.svg'); } + [shop = 'tyres'][zoom >= 18] { + marker-file: url('symbols/shop/tyres.svg'); + } + [shop = 'variety_store'][zoom >= 18] { marker-file: url('symbols/shop/variety_store.svg'); } @@ -1856,6 +1860,7 @@ [feature = 'shop_stationery'], [feature = 'shop_tobacco'], [feature = 'shop_tea'], + [feature = 'shop_tyres'], [feature = 'shop_variety_store'], [feature = 'shop_wine'], [feature = 'shop_other']{ diff --git a/project.mml b/project.mml index 023fcabcc5..3d159ee211 100644 --- a/project.mml +++ b/project.mml @@ -1644,7 +1644,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') THEN shop + 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres') THEN shop ELSE 'other' END AS shop, way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels FROM planet_osm_polygon @@ -1725,7 +1725,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') THEN shop + 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres') THEN shop ELSE 'other' END AS shop, NULL AS way_pixels FROM planet_osm_point @@ -2082,7 +2082,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') THEN shop + 'coffee', 'tyres') 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', @@ -2209,7 +2209,7 @@ Layer: 'seafood', 'shoes', 'alcohol', 'gift', 'furniture', 'kiosk', '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') THEN shop + 'variety_store', 'wine', 'outdoor', 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres') 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/tyres.svg b/symbols/shop/tyres.svg new file mode 100644 index 0000000000..0713b83eeb --- /dev/null +++ b/symbols/shop/tyres.svg @@ -0,0 +1,37 @@ + + + + + + image/svg+xml + + + + + + + + +