mapcomplete/assets/themes/elongated_coin/elongated_coin.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

217 lines
5.4 KiB
JSON
Raw Normal View History

2023-07-01 01:09:46 +02:00
{
"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?"
},
2023-07-17 20:25:19 +02:00
"freeform": {
"key": "coin:type",
"type": "string",
"placeholder": {
"en": "Coin type (e.g. 10cent)"
}
},
2023-07-01 01:09:46 +02:00
"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."
}
2023-07-17 20:25:19 +02:00
},
{
"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.*"
2023-07-01 01:09:46 +02:00
}
2023-07-17 20:25:19 +02:00
],
"render": {
"en": "This penny press uses a {coin:type} coin for pressing."
}
2023-07-01 01:09:46 +02:00
},
"website",
{
"id": "charge",
"question": {
2023-07-18 01:53:37 +02:00
"en": "How much does it cost to press a penny?"
2023-07-01 01:09:46 +02:00
},
"freeform": {
"key": "charge",
"placeholder": {
"en": "Cost (e.g. 0.50 EUR)"
}
},
"mappings": [
{
"if": "charge=1 EUR",
"then": {
2023-07-18 01:53:37 +02:00
"en": "It costs 1 euro to press a penny."
2023-07-17 20:25:19 +02:00
},
"hideInAnswer": "_currency!~.*EUR.*"
2023-07-01 01:09:46 +02:00
},
{
"if": "charge=2 EUR",
"then": {
2023-07-18 01:53:37 +02:00
"en": "It costs 2 euros to press a penny."
2023-07-17 20:25:19 +02:00
},
"hideInAnswer": "_currency!~.*EUR.*"
2023-07-01 01:09:46 +02:00
}
],
"render": {
2023-07-18 01:53:37 +02:00
"en": "It costs {charge} to press a penny."
2023-07-01 01:09:46 +02:00
}
},
"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
}