Skip to content

Commit 2101a01

Browse files
doktorpixel14kocio-pl
doktorpixel14
authored andcommitted
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
1 parent 8de55b0 commit 2101a01

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

amenity-points.mss

+5
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,10 @@
10111011
[shop = 'variety_store'][zoom >= 18] {
10121012
marker-file: url('symbols/shop/variety_store.svg');
10131013
}
1014+
1015+
[shop = 'video_games'][zoom >= 18] {
1016+
marker-file: url('symbols/shop/video_games.svg');
1017+
}
10141018
}
10151019

10161020
[feature = 'advertising_column'][zoom >= 19]{
@@ -2260,6 +2264,7 @@
22602264
[feature = 'shop_tea'],
22612265
[feature = 'shop_tyres'],
22622266
[feature = 'shop_variety_store'],
2267+
[feature = 'shop_video_games'],
22632268
[feature = 'shop_wine'],
22642269
[feature = 'shop_other']{
22652270
[way_pixels > 3000][zoom >= 17],

project.mml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,8 @@ Layer:
14821482
'mobile_phone', 'motorcycle', 'musical_instrument', 'newsagent', 'optician', 'jewelry', 'jewellery',
14831483
'electronics', 'chemist', 'toys', 'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery',
14841484
'laundry', 'dry_cleaning', 'beverages', 'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor',
1485-
'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry', 'chocolate', 'music', 'medical_supply', 'dairy') THEN shop
1485+
'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry', 'chocolate',
1486+
'music', 'medical_supply', 'dairy', 'video_games') THEN shop
14861487
ELSE 'other' END AS shop,
14871488
way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels
14881489
FROM planet_osm_polygon
@@ -1599,7 +1600,8 @@ Layer:
15991600
'mobile_phone', 'motorcycle', 'musical_instrument', 'newsagent', 'optician', 'jewelry', 'jewellery',
16001601
'electronics', 'chemist', 'toys', 'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery',
16011602
'laundry', 'dry_cleaning', 'beverages', 'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor',
1602-
'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry', 'chocolate', 'music', 'medical_supply', 'dairy') THEN shop
1603+
'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry', 'chocolate',
1604+
'music', 'medical_supply', 'dairy', 'video_games') THEN shop
16031605
ELSE 'other' END AS shop,
16041606
NULL AS way_pixels
16051607
FROM planet_osm_point
@@ -1994,7 +1996,7 @@ Layer:
19941996
'musical_instrument', 'newsagent', 'optician', 'jewelry', 'jewellery', 'electronics', 'chemist', 'toys',
19951997
'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery', 'laundry', 'dry_cleaning', 'beverages',
19961998
'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor', 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea',
1997-
'coffee', 'tyres', 'pastry', 'chocolate', 'music', 'medical_supply', 'dairy') THEN shop
1999+
'coffee', 'tyres', 'pastry', 'chocolate', 'music', 'medical_supply', 'dairy', 'video_games') THEN shop
19982000
WHEN shop IN ('no', 'vacant', 'closed', 'disused', 'empty') OR shop IS NULL THEN NULL ELSE 'other' END,
19992001
'leisure_' || CASE WHEN leisure IN ('swimming_pool', 'water_park', 'miniature_golf', 'golf_course', 'fitness_centre', 'sports_centre', 'stadium', 'track',
20002002
'pitch', 'playground', 'park', 'recreation_ground', 'common', 'garden', 'nature_reserve', 'marina',
@@ -2143,7 +2145,7 @@ Layer:
21432145
'newsagent', 'optician', 'jewelry', 'jewellery', 'electronics', 'chemist', 'toys', 'travel_agency', 'car_parts',
21442146
'greengrocer', 'farm', 'stationery', 'laundry', 'dry_cleaning', 'beverages', 'perfumery', 'cosmetics',
21452147
'variety_store', 'wine', 'outdoor', 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres',
2146-
'pastry', 'chocolate', 'music', 'medical_supply','dairy') THEN shop
2148+
'pastry', 'chocolate', 'music', 'medical_supply','dairy', 'video_games') THEN shop
21472149
WHEN shop IN ('no', 'vacant', 'closed', 'disused', 'empty') OR shop IS NULL THEN NULL ELSE 'other' END,
21482150
'leisure_' || CASE WHEN leisure IN ('swimming_pool', 'water_park', 'miniature_golf', 'golf_course', 'fitness_centre', 'sports_centre', 'stadium', 'track',
21492151
'pitch','playground', 'park', 'recreation_ground', 'common', 'garden', 'nature_reserve', 'marina',

symbols/shop/video_games.svg

+26
Loading

0 commit comments

Comments
 (0)