Skip to content

Commit ebe9c88

Browse files
jbelienkocio-pl
authored andcommitted
Add rendering for shop=chocolate (gravitystorm#3027)
* Update amenity-points.mss Add rendering for `shop=chocolate` based on [wiki page](https://wiki.openstreetmap.org/wiki/Tag:shop%3Dchocolate) * Update project.mml Add `shop=chocolate` * Update project.mml * Update amenity-points.mss
1 parent fcf8c16 commit ebe9c88

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

amenity-points.mss

+2
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@
679679
marker-file: url('symbols/shop/convenience.svg');
680680
}
681681

682+
[shop = 'chocolate'][zoom >= 18],
682683
[shop = 'confectionery'][zoom >= 18],
683684
[shop = 'pastry'][zoom >= 18] {
684685
marker-file: url('symbols/shop/confectionery.svg');
@@ -1957,6 +1958,7 @@
19571958
[feature = 'shop_convenience'],
19581959
[feature = 'shop_confectionery'],
19591960
[feature = 'shop_pastry'],
1961+
[feature = 'shop_chocolate'],
19601962
[feature = 'shop_copyshop'],
19611963
[feature = 'shop_deli'],
19621964
[feature = 'shop_doityourself'],

project.mml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ Layer:
14651465
'mobile_phone', 'motorcycle', 'musical_instrument', 'newsagent', 'optician', 'jewelry', 'jewellery',
14661466
'electronics', 'chemist', 'toys', 'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery',
14671467
'laundry', 'dry_cleaning', 'beverages', 'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor',
1468-
'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry') THEN shop
1468+
'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry', 'chocolate') THEN shop
14691469
ELSE 'other' END AS shop,
14701470
way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels
14711471
FROM planet_osm_polygon
@@ -1568,7 +1568,7 @@ Layer:
15681568
'mobile_phone', 'motorcycle', 'musical_instrument', 'newsagent', 'optician', 'jewelry', 'jewellery',
15691569
'electronics', 'chemist', 'toys', 'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery',
15701570
'laundry', 'dry_cleaning', 'beverages', 'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor',
1571-
'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry') THEN shop
1571+
'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres', 'pastry', 'chocolate') THEN shop
15721572
ELSE 'other' END AS shop,
15731573
NULL AS way_pixels
15741574
FROM planet_osm_point
@@ -1955,7 +1955,7 @@ Layer:
19551955
'musical_instrument', 'newsagent', 'optician', 'jewelry', 'jewellery', 'electronics', 'chemist', 'toys',
19561956
'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery', 'laundry', 'dry_cleaning', 'beverages',
19571957
'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor', 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea',
1958-
'coffee', 'tyres', 'pastry') THEN shop
1958+
'coffee', 'tyres', 'pastry', 'chocolate') THEN shop
19591959
WHEN shop IN ('no', 'vacant', 'closed', 'disused', 'empty') OR shop IS NULL THEN NULL ELSE 'other' END,
19601960
'leisure_' || CASE WHEN leisure IN ('swimming_pool', 'water_park', 'miniature_golf', 'golf_course', 'fitness_centre', 'sports_centre', 'stadium', 'track',
19611961
'pitch', 'playground', 'park', 'recreation_ground', 'common', 'garden', 'nature_reserve', 'marina',
@@ -2098,7 +2098,7 @@ Layer:
20982098
'newsagent', 'optician', 'jewelry', 'jewellery', 'electronics', 'chemist', 'toys', 'travel_agency', 'car_parts',
20992099
'greengrocer', 'farm', 'stationery', 'laundry', 'dry_cleaning', 'beverages', 'perfumery', 'cosmetics',
21002100
'variety_store', 'wine', 'outdoor', 'copyshop', 'sports', 'deli', 'tobacco', 'art', 'tea', 'coffee', 'tyres',
2101-
'pastry') THEN shop
2101+
'pastry', 'chocolate') THEN shop
21022102
WHEN shop IN ('no', 'vacant', 'closed', 'disused', 'empty') OR shop IS NULL THEN NULL ELSE 'other' END,
21032103
'leisure_' || CASE WHEN leisure IN ('swimming_pool', 'water_park', 'miniature_golf', 'golf_course', 'fitness_centre', 'sports_centre', 'stadium', 'track',
21042104
'pitch','playground', 'park', 'recreation_ground', 'common', 'garden', 'nature_reserve', 'marina',

0 commit comments

Comments
 (0)