mapcomplete/assets/themes/elongated_coin/elongated_coin.json

217 lines
No EOL
5.4 KiB
JSON

{
"id": "elongated_coin",
"title": {
"en": "Penny Presses"
},
"description": {
"en": "Find penny presses to create your own elongated coins."
},
"icon": "./assets/themes/elongated_coin/penny.svg",
"layers": [
{
"id": "elongated_coin",
"name": {
"en": "Penny Presses"
},
"description": {
"en": "Layer showing penny presses."
},
"source": {
"osmTags": {
"and": [
"amenity=vending_machine",
"vending=elongated_coin"
]
}
},
"title": {
"render": {
"en": "Penny Press"
}
},
"tagRenderings": [
"images",
"opening_hours_24_7",
{
"id": "designs",
"question": {
"en": "How many designs are available?"
},
"freeform": {
"key": "coin:design_count",
"type": "pnat",
"placeholder": {
"en": "Number of designs (e.g. 5)"
}
},
"render": {
"en": "This penny press has {coin:design_count} designs available."
},
"mappings": [
{
"if": "coin:design_count=1",
"then": {
"en": "This penny press has one design available."
}
},
{
"if": "coin:design_count=2",
"then": {
"en": "This penny press has two designs available."
}
},
{
"if": "coin:design_count=3",
"then": {
"en": "This penny press has three designs available."
}
},
{
"if": "coin:design_count=4",
"then": {
"en": "This penny press has four designs available."
}
}
]
},
{
"id": "coin",
"question": {
"en": "What coin is used for pressing?"
},
"freeform": {
"key": "coin:type",
"type": "string",
"placeholder": {
"en": "Coin type (e.g. 10cent)"
}
},
"mappings": [
{
"if": "coin:type=2cent",
"then": {
"en": "This penny press uses a 2 cent coin for pressing."
}
},
{
"if": "coin:type=5cent",
"then": {
"en": "This penny press uses a 5 cent coin for pressing."
}
},
{
"if": "coin:type=10cent",
"then": {
"en": "This penny press uses a 10 cent coin for pressing."
}
},
{
"if": "coin:type=25cent",
"then": {
"en": "This penny press uses a 25 cent coin for pressing."
},
"hideInAnswer": "_currency!~.*USD.*"
},
{
"if": "coin:type=50cent",
"then": {
"en": "This penny press uses a 50 cent coin for pressing."
},
"hideInAnswer": "_currency!~.*USD.*"
}
],
"render": {
"en": "This penny press uses a {coin:type} coin for pressing."
}
},
"website",
{
"id": "charge",
"question": {
"en": "How much does it cost to press a penny?"
},
"freeform": {
"key": "charge",
"placeholder": {
"en": "Cost (e.g. 0.50 EUR)"
}
},
"mappings": [
{
"if": "charge=1 EUR",
"then": {
"en": "It costs 1 euro to press a penny."
},
"hideInAnswer": "_currency!~.*EUR.*"
},
{
"if": "charge=2 EUR",
"then": {
"en": "It costs 2 euros to press a penny."
},
"hideInAnswer": "_currency!~.*EUR.*"
}
],
"render": {
"en": "It costs {charge} to press a penny."
}
},
"denominations-coins",
{
"id": "indoor",
"question": {
"en": "Is the penny press indoors?"
},
"mappings": [
{
"if": "indoor=yes",
"then": {
"en": "This penny press is located indoors."
}
},
{
"if": "indoor=no",
"then": {
"en": "This penny press is located outdoors."
}
}
]
},
"level"
],
"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"
},
"tags": [
"amenity=vending_machine",
"vending=elongated_coin",
"payment:coins=yes"
]
}
],
"filter": [
"open_now"
]
}
],
"startLat": 53.0565,
"startLon": 8.7492,
"startZoom": 11
}