diff --git a/shop.json b/shop.json
index dadc6bb3..56f7b2ba 100644
--- a/shop.json
+++ b/shop.json
@@ -3,10 +3,82 @@
"query": "(node[shop];way[shop];relation[shop];);",
"minZoom": 16,
"feature": {
+ "pre": "{% set current = const.default %}{% for v in const.shops %}{% if tags.shop in v.types %}{% set current = v %}{% endif %}{% endfor %}",
"body": "{{ tagTrans('shop', tags.shop) }}",
"description": "{{ tagTrans('shop', tags.shop) }}",
- "markerSign": "{% set c = { alcohol: 'fa-beer', baby_goods: '🚼', bag: 'fa-shopping-bag', bakery: 'fa-birthday-cake', beverages: 'fa-beer', boutique: '👚', butcher: 'fa-cutlery', cheese: 'fa-cutlery', chocolate: 'fa-cutlery', clothes: '👚', coffee: 'ia-coffee', confectionery: 'fa-birthday-cake', convenience: 'fa-shopping-basket', deli: 'fa-cutlery', dairy: 'fa-cutlery', department_store: 'fa-building', fabric: '👚', farm: 'fa-cutlery', fashion: '👚', general: 'fa-shopping-bag', greengrocer: 'fa-cutlery', hairdresser: '👱', ice_cream: '🍨', jewelry: '💍', kiosk: 'fa-newspaper-o', leather: '👚', mall: 'fa-building', pasta: 'fa-cutlery', pastry: 'fa-birthday-cake', seafood: 'fa-cutlery', sewing: '👚', shoes: '👟', spices: 'fa-cutlery', supermarket: 'fa-shopping-cart', tailor: '👚', tea: 'fa-coffee', watches: '⌚' }[tags.shop]|default('fa-shopping-bag') %}{% if c|slice(0, 3) == 'fa-' %}{% else %}{{ c|raw }}{% endif %}",
+ "markerSign": "{% set c = current.sign %}{% if c|slice(0, 3) == 'fa-' %}{% else %}{{ c|raw }}{% endif %}",
"__": "need better icons for: bakery, butcher, cheese, ice_cream, ",
"__": "no icons for: brewing_supplies, charity, second_hand, variety_store"
+ },
+ "const": {
+ "default": {
+ "sign": "fa-shopping-bag"
+ },
+ "shops": [
+ {
+ "types": [ "alcohol", "beverages" ],
+ "sign": "fa-beer"
+ },
+ {
+ "types": [ "baby_goods" ],
+ "sign": "🚼"
+ },
+ {
+ "types": [ "bag", "general" ],
+ "sign": "fa-shopping-bag"
+ },
+ {
+ "types": [ "bakery", "confectionery", "pastry" ],
+ "sign": "fa-birthday-cake"
+ },
+ {
+ "types": [ "boutique", "clothes", "fabric", "fashion", "leather", "sewing", "tailor" ],
+ "sign": "👚"
+ },
+ {
+ "types": [ "butcher", "cheese", "chocolate", "deli", "dairy", "farm", "greengrocer", "pasta", "spices" ],
+ "sign": "fa-cutlery"
+ },
+ {
+ "types": [ "coffee", "tea" ],
+ "sign": "fa-coffee"
+ },
+ {
+ "types": [ "convenience" ],
+ "sign": "fa-shopping-basket"
+ },
+ {
+ "types": [ "department_store", "mall" ],
+ "sign": "fa-building"
+ },
+ {
+ "types": [ "hairdresser" ],
+ "sign": "👱"
+ },
+ {
+ "types": [ "ice_cream" ],
+ "sign": "🍨"
+ },
+ {
+ "types": [ "jewelry" ],
+ "sign": "💍"
+ },
+ {
+ "types": [ "kiosk" ],
+ "sign": "fa-newspaper-o"
+ },
+ {
+ "types": [ "shoes" ],
+ "sign": "👟"
+ },
+ {
+ "types": [ "supermarket" ],
+ "sign": "fa-shopping-cart"
+ },
+ {
+ "types": [ "watches" ],
+ "sign": "⌚"
+ }
+ ]
}
}