mapcomplete/assets/themes/shops/shops.json
2020-12-08 23:44:34 +01:00

276 lines
No EOL
6.5 KiB
JSON

{
"id": "shops",
"title": {
"en": "Open Shop Map",
"fr": "Carte des magasins"
},
"shortDescription": {
"en": "An editable map with basic shop information",
"fr": "Carte modifiable affichant les informations de base des magasins"
},
"description": {
"en": "On this map, one can mark basic information about shops, add opening hours and phone numbers",
"fr": "Sur cette carte, vous pouvez ajouter des informations sur les magasins, horaires d'ouverture et numéro de téléphone"
},
"language": [
"en",
"fr"
],
"maintainer": "MapComplete",
"icon": "./assets/themes/shops/shop.svg",
"version": "0",
"startLat": 0,
"startLon": 0,
"startZoom": 1,
"widenFactor": 0.05,
"socialImage": "",
"layers": [
{
"id": "shops",
"name": {
"en": "Shop",
"fr": "Magasin"
},
"minzoom": 16,
"overpassTags": {
"and": [
"shop~*"
]
},
"title": {
"render": {
"en": "Shop",
"fr": "Magasin"
},
"mappings": [
{
"if": {
"and": [
"name~*"
]
},
"then": {
"en": "{name}",
"fr": "{name}"
}
},
{
"if": {
"and": [
"shop!~yes"
]
},
"then": {
"en": "{shop}",
"fr": "{shop}"
}
}
]
},
"description": {
"en": "A shop",
"fr": "Un magasin"
},
"tagRenderings": [
"images",
{
"question": {
"en": "What is the name of this shop?",
"fr": "Qu'est-ce que le nom de ce magasin?"
},
"render": "This shop is called <i>{name}</i>",
"freeform": {
"key": "name"
}
},
{
"render": {
"en": "This shop sells {shop}",
"fr": "Ce magasin vends {shop}"
},
"question": {
"en": "What does this shop sell?",
"fr": "Que vends ce magasin ?"
},
"freeform": {
"key": "shop"
},
"mappings": [
{
"if": {
"and": [
"shop=convenience"
]
},
"then": {
"en": "Convenience store",
"fr": "Épicerie/superette"
}
},
{
"if": {
"and": [
"shop=supermarket"
]
},
"then": {
"en": "Supermarket",
"fr": "Supermarché"
}
},
{
"if": {
"and": [
"shop=clothes"
]
},
"then": {
"en": "Clothing store",
"fr": "Magasin de vêtements"
}
},
{
"if": {
"and": [
"shop=hairdresser"
]
},
"then": {
"en": "Hairdresser",
"fr": "Coiffeur"
}
},
{
"if": {
"and": [
"shop=bakery"
]
},
"then": {
"en": "Bakery",
"fr": "Boulangerie"
}
},
{
"if": {
"and": [
"shop=car_repair"
]
},
"then": {
"en": "Car repair (garage)",
"fr": "Garagiste"
}
},
{
"if": {
"and": [
"shop=car"
]
},
"then": {
"en": "Car dealer",
"fr": "Concessionnaire"
}
}
]
},
{
"render": {
"en": "<a href='tel:{phone}'>{phone}</a>",
"fr": "<a href='tel:{phone}'>{phone}</a>"
},
"question": {
"en": "What is the phone number?",
"fr": "Quel est le numéro de téléphone ?"
},
"freeform": {
"key": "phone",
"type": "phone"
}
},
{
"render": {
"en": "<a href='{website}'>{website}</a>",
"fr": "<a href='{website}'>{website}</a>"
},
"question": {
"en": "What is the website of this shop?",
"fr": "Quel est le site internet de ce magasin ?"
},
"freeform": {
"key": "website",
"type": "url"
}
},
{
"render": {
"en": "<a href='mailto:{email}'>{email}</a>",
"fr": "<a href='mailto:{email}'>{email}</a>"
},
"question": {
"en": "What is the email address of this shop?",
"fr": "Quel est l'adresse mail de ce magasin ?"
},
"freeform": {
"key": "email",
"type": "email"
}
},
{
"render": {
"en": "{opening_hours_table(opening_hours)}",
"fr": "{opening_hours_table(opening_hours)}"
},
"question": {
"en": "What are the opening hours of this shop?",
"fr": "Quels sont les horaires d'ouverture de ce magasin ?"
},
"freeform": {
"key": "opening_hours",
"type": "opening_hours"
}
},
"questions",
"reviews"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/shops/shop.svg"
},
"iconOverlays": [
{
"if": "opening_hours~*",
"then": "isOpen",
"badge": true
}
],
"width": {
"render": "8"
},
"iconSize": {
"render": "40,40,center"
},
"color": {
"render": "#00f"
},
"presets": [
{
"tags": [
"shop=yes"
],
"title": {
"en": "Shop",
"fr": "Magasin"
},
"description": {
"en": "Add a new shop",
"fr": "Ajouter un nouveau magasin"
}
}
],
"wayHandling": 2
}
],
"roamingRenderings": []
}