Add more vending options when zoomed in
This commit is contained in:
parent
81d0e8d7bf
commit
315cfa5e75
12 changed files with 577 additions and 450 deletions
239
assets/layers/elongated_coin/elongated_coin.json
Normal file
239
assets/layers/elongated_coin/elongated_coin.json
Normal file
|
@ -0,0 +1,239 @@
|
|||
{
|
||||
"id": "elongated_coin",
|
||||
"name": {
|
||||
"en": "Penny Presses",
|
||||
"de": "Münzpressen"
|
||||
},
|
||||
"description": {
|
||||
"en": "Layer showing penny presses.",
|
||||
"de": "Ebene mit Münzpressen."
|
||||
},
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"and": [
|
||||
"amenity=vending_machine",
|
||||
"vending=elongated_coin"
|
||||
]
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Penny Press",
|
||||
"de": "Münzpresse"
|
||||
}
|
||||
},
|
||||
"tagRenderings": [
|
||||
"images",
|
||||
"opening_hours_24_7",
|
||||
{
|
||||
"id": "designs",
|
||||
"question": {
|
||||
"en": "How many designs are available?",
|
||||
"de": "Wieviele Motive sind verfügbar?"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "coin:design_count",
|
||||
"type": "pnat",
|
||||
"placeholder": {
|
||||
"en": "Number of designs (e.g. 5)",
|
||||
"de": "Motivanzahl (z.B. 5)"
|
||||
}
|
||||
},
|
||||
"render": {
|
||||
"en": "This penny press has {coin:design_count} designs available.",
|
||||
"de": "Die Münzpresse hat {coin:design_count} Motive zur Auswahl."
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "coin:design_count=1",
|
||||
"then": {
|
||||
"en": "This penny press has one design available.",
|
||||
"de": "Die Münzpresse hat ein Motiv zur Auswahl."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "coin:design_count=2",
|
||||
"then": {
|
||||
"en": "This penny press has two designs available.",
|
||||
"de": "Die Münzpresse hat zwei Motive zur Auswahl."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "coin:design_count=3",
|
||||
"then": {
|
||||
"en": "This penny press has three designs available.",
|
||||
"de": "Die Münzpresse hat drei Motive zur Auswahl."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "coin:design_count=4",
|
||||
"then": {
|
||||
"en": "This penny press has four designs available.",
|
||||
"de": "Die Münzpresse hat vier Motive zur Auswahl."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"payment-options-split",
|
||||
{
|
||||
"id": "coin",
|
||||
"question": {
|
||||
"en": "What coin is used for pressing?",
|
||||
"de": "Welche Münze wird zum Pressen verwendet?"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "coin:type",
|
||||
"type": "string",
|
||||
"placeholder": {
|
||||
"en": "Coin type (e.g. 10cent)",
|
||||
"de": "Münzenart (z.B. 10 Cent)"
|
||||
}
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "coin:type=2cent",
|
||||
"then": {
|
||||
"en": "This penny press uses a 2 cent coin for pressing.",
|
||||
"de": "Die Münzpresse benötigt eine 2 Cent Münze um zu Pressen."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "coin:type=5cent",
|
||||
"then": {
|
||||
"en": "This penny press uses a 5 cent coin for pressing.",
|
||||
"de": "Die Münzpresse benötigt eine 5 Cent Münze um zu Pressen."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "coin:type=10cent",
|
||||
"then": {
|
||||
"en": "This penny press uses a 10 cent coin for pressing.",
|
||||
"de": "Die Münzpresse benötigt eine 10 Cent Münze um zu Pressen."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "coin:type=25cent",
|
||||
"then": {
|
||||
"en": "This penny press uses a 25 cent coin for pressing.",
|
||||
"de": "Die Münzpresse benötigt eine 25 Cent Münze um zu Pressen."
|
||||
},
|
||||
"hideInAnswer": "_currency!~.*USD.*"
|
||||
},
|
||||
{
|
||||
"if": "coin:type=50cent",
|
||||
"then": {
|
||||
"en": "This penny press uses a 50 cent coin for pressing.",
|
||||
"de": "Die Münzpresse benötigt eine 50 Cent Münze um zu Pressen."
|
||||
},
|
||||
"hideInAnswer": "_currency!~.*USD.*"
|
||||
}
|
||||
],
|
||||
"render": {
|
||||
"en": "This penny press uses a {coin:type} coin for pressing.",
|
||||
"de": "Die Münzpresse benötigt eine {coin:type} Münze um zu Pressen."
|
||||
}
|
||||
},
|
||||
"website",
|
||||
{
|
||||
"id": "charge",
|
||||
"question": {
|
||||
"en": "How much does it cost to press a penny?",
|
||||
"de": "Wieviel kostet es eine Münze zu Pressen?"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "charge",
|
||||
"placeholder": {
|
||||
"en": "Cost (e.g. 0.50 EUR)",
|
||||
"de": "Einwurf (z.B. 0,5€)",
|
||||
"fr": "Coût (par ex. 0.50 EUR)"
|
||||
}
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "charge=1 EUR",
|
||||
"then": {
|
||||
"en": "It costs 1 euro to press a penny.",
|
||||
"de": "Eine Münze zu Pressen kostet 1 Euro."
|
||||
},
|
||||
"hideInAnswer": "_currency!~.*EUR.*"
|
||||
},
|
||||
{
|
||||
"if": "charge=2 EUR",
|
||||
"then": {
|
||||
"en": "It costs 2 euros to press a penny.",
|
||||
"de": "Eine Münze zu Pressen kostet 2€."
|
||||
},
|
||||
"hideInAnswer": "_currency!~.*EUR.*"
|
||||
}
|
||||
],
|
||||
"render": {
|
||||
"en": "It costs {charge} to press a penny.",
|
||||
"de": "Es kostet {charge}€ um eine Münze zu Pressen."
|
||||
}
|
||||
},
|
||||
"denominations-coins",
|
||||
{
|
||||
"id": "indoor",
|
||||
"question": {
|
||||
"en": "Is the penny press indoors?",
|
||||
"de": "Befindet sich die Münzpresse im Inneren?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "indoor=yes",
|
||||
"then": {
|
||||
"en": "This penny press is located indoors.",
|
||||
"de": "Die Münzpresse befindet sich im Inneren."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "indoor=no",
|
||||
"then": {
|
||||
"en": "This penny press is located outdoors.",
|
||||
"de": "Die Münzpresse befindet sich Draußen."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"level",
|
||||
"check_date"
|
||||
],
|
||||
"mapRendering": [
|
||||
{
|
||||
"icon": "circle:#FFFFFF00;./assets/themes/elongated_coin/penny.svg",
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"iconBadges": [
|
||||
{
|
||||
"if": "opening_hours~*",
|
||||
"then": "icons.isOpen"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"presets": [
|
||||
{
|
||||
"title": {
|
||||
"en": "a penny press",
|
||||
"de": "Eine Münzpresse"
|
||||
},
|
||||
"tags": [
|
||||
"amenity=vending_machine",
|
||||
"vending=elongated_coin",
|
||||
"payment:coins=yes"
|
||||
]
|
||||
}
|
||||
],
|
||||
"allowMove": {
|
||||
"enableImproveAccuracy": true,
|
||||
"enableRelocation": true
|
||||
},
|
||||
"deletion": true,
|
||||
"filter": [
|
||||
"open_now",
|
||||
"accepts_debit_cards",
|
||||
"accepts_credit_cards"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue