From 2101a012a7f45fbe645e355256d2fb298b21ef9f Mon Sep 17 00:00:00 2001 From: doktorpixel14 Date: Mon, 16 Apr 2018 19:33:15 +0200 Subject: [PATCH] Adding rendering for shop=video_games (#3167) * added rendering for shop=video games (#1) * Update amenity-points.mss * Update project.mml * Create video_games.svg * Update video_games.svg * added line breaks for better readability --- amenity-points.mss | 5 +++++ project.mml | 10 ++++++---- symbols/shop/video_games.svg | 26 ++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 symbols/shop/video_games.svg diff --git a/amenity-points.mss b/amenity-points.mss index a690758e91..d96e0eef3c 100644 --- a/amenity-points.mss +++ b/amenity-points.mss @@ -1011,6 +1011,10 @@ [shop = 'variety_store'][zoom >= 18] { marker-file: url('symbols/shop/variety_store.svg'); } + + [shop = 'video_games'][zoom >= 18] { + marker-file: url('symbols/shop/video_games.svg'); + } } [feature = 'advertising_column'][zoom >= 19]{ @@ -2260,6 +2264,7 @@ [feature = 'shop_tea'], [feature = 'shop_tyres'], [feature = 'shop_variety_store'], + [feature = 'shop_video_games'], [feature = 'shop_wine'], [feature = 'shop_other']{ [way_pixels > 3000][zoom >= 17], diff --git a/project.mml b/project.mml index 20fb19ab56..cdaee14de0 100644 --- a/project.mml +++ b/project.mml @@ -1482,7 +1482,8 @@ 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', 'music', 'medical_supply', 'dairy') THEN shop + 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry', 'chocolate', + 'music', 'medical_supply', 'dairy', 'video_games') THEN shop ELSE 'other' END AS shop, way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels FROM planet_osm_polygon @@ -1599,7 +1600,8 @@ 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', 'music', 'medical_supply', 'dairy') THEN shop + 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry', 'chocolate', + 'music', 'medical_supply', 'dairy', 'video_games') THEN shop ELSE 'other' END AS shop, NULL AS way_pixels FROM planet_osm_point @@ -1994,7 +1996,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', 'music', 'medical_supply', 'dairy') THEN shop + 'coffee', 'tyres', 'pastry', 'chocolate', 'music', 'medical_supply', 'dairy', 'video_games') 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', @@ -2143,7 +2145,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', 'music', 'medical_supply','dairy') THEN shop + 'pastry', 'chocolate', 'music', 'medical_supply','dairy', 'video_games') 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/video_games.svg b/symbols/shop/video_games.svg new file mode 100644 index 0000000000..e03897c403 --- /dev/null +++ b/symbols/shop/video_games.svg @@ -0,0 +1,26 @@ + + + + + + image/svg+xml + + + + + + + + +