mapcomplete/assets/layers/souvenir_coin/souvenir_coin.json

177 lines
4.2 KiB
JSON

{
"id": "souvenir_coin",
"name": {
"en": "Souvenir Coin Machines",
"de": "Souvenir-Münzautomaten"
},
"description": {
"en": "Layer showing machines selling souvenir coins",
"de": "Ebene mit Automaten, die Souvenir-Münzen verkaufen"
},
"source": {
"osmTags": {
"and": [
"amenity=vending_machine",
"vending~.*souvenir_coins.*"
]
}
},
"title": {
"render": {
"en": "Souvenir Coin Machine",
"de": "Souvenir-Münzautomat"
}
},
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"iconBadges": [
{
"if": "opening_hours~*",
"then": "icons.isOpen"
}
],
"marker": [
{
"icon": "circle",
"color": "#FFFFFF00"
},
{
"icon": "./assets/layers/souvenir_coin/souvenir_coin.svg"
}
]
}
],
"lineRendering": [
{
"width": 1,
"color": "blue"
}
],
"presets": [
{
"title": {
"en": "a souvenir coin machine",
"de": "ein Souvenir-Münzautomaten"
},
"description": {
"en": "Add a machine selling souvenir coins",
"de": "Hinzufügen eines Automaten für Souvenirmünzen"
},
"tags": [
"amenity=vending_machine",
"vending=souvenir_coins"
]
}
],
"tagRenderings": [
"images",
"opening_hours_24_7",
{
"builtin": "elongated_coin.designs",
"id": "designs",
"override": {
"render": {
"en": "This machine has {coin:design_count} designs available",
"de": "Diese Maschine hat {coin:design_count} Designs verfügbar"
},
"mappings": [
{
"if": "coin:design_count=1",
"then": {
"en": "This machine has one design available",
"de": "Diese Maschine hat ein Design zur Verfügung"
}
},
{
"if": "coin:design_count=2",
"then": {
"en": "This machine has two designs available",
"de": "Diese Maschine hat zwei Designs verfügbar"
}
},
{
"if": "coin:design_count=3",
"then": {
"en": "This machine has three designs available",
"de": "Diese Maschine hat drei Designs verfügbar"
}
},
{
"if": "coin:design_count=4",
"then": {
"en": "This machine has four designs available",
"de": "Diese Maschine hat vier Designs verfügbar"
}
}
]
}
},
"payment-options-split",
"website",
{
"question": {
"en": "How much does a souvenir coin cost?",
"de": "Wie viel kostet eine Souvenirmünze?"
},
"id": "charge",
"render": {
"en": "A souvenir coins costs {charge}",
"de": "Eine Souvenirmünze kostet {charge}"
},
"freeform": {
"key": "charge",
"placeholder": {
"en": "Cost (e.g. 2 EUR)",
"de": "Kosten (z.B. 2 EUR)"
}
},
"mappings": [
{
"if": "charge=2 EUR",
"then": {
"en": "A souvenir coin costs 2 euro",
"de": "Eine Souvenirmünze kostet 2 Euro"
},
"hideInAnswer": "_currency!~.*EUR.*"
}
]
},
"denominations-coins",
{
"question": {
"en": "Is this machine located indoors?",
"de": "Ist diese Maschine im Innenbereich?"
},
"id": "indoor",
"mappings": [
{
"if": "indoor=yes",
"then": {
"en": "This machine is located indoors.",
"de": "Diese Maschine befindet sich im Innenbereich."
}
},
{
"if": "indoor=no",
"then": {
"en": "This machine is located outdoors.",
"de": "Diese Maschine befindet sich im Freien."
}
}
]
},
"level",
"check_date"
],
"filter": [
"open_now",
"accepts_debit_cards",
"accepts_credit_cards"
],
"deletion": true,
"allowMove": true
}