From c5d5f27617bf458d47f229026f17d3aee9860e77 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sat, 1 Jul 2023 01:09:46 +0200 Subject: [PATCH] Pressed Penny theme --- .../themes/elongated_coin/elongated_coin.json | 192 ++++++++++++++++++ .../themes/elongated_coin/license_info.json | 10 + assets/themes/elongated_coin/penny.svg | 79 +++++++ .../mapcomplete-changes.json | 4 + 4 files changed, 285 insertions(+) create mode 100644 assets/themes/elongated_coin/elongated_coin.json create mode 100644 assets/themes/elongated_coin/license_info.json create mode 100644 assets/themes/elongated_coin/penny.svg diff --git a/assets/themes/elongated_coin/elongated_coin.json b/assets/themes/elongated_coin/elongated_coin.json new file mode 100644 index 0000000000..086a40daae --- /dev/null +++ b/assets/themes/elongated_coin/elongated_coin.json @@ -0,0 +1,192 @@ +{ + "id": "elongated_coin", + "title": { + "en": "Penny Presses" + }, + "description": { + "en": "Find penny presses to create your own elongated coins." + }, + "hideFromOverview": true, + "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?" + }, + "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." + } + } + ] + }, + "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." + } + }, + { + "if": "charge=2 EUR", + "then": { + "en": "It costs 2 euros to press a penny." + } + } + ], + "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 +} \ No newline at end of file diff --git a/assets/themes/elongated_coin/license_info.json b/assets/themes/elongated_coin/license_info.json new file mode 100644 index 0000000000..778c736244 --- /dev/null +++ b/assets/themes/elongated_coin/license_info.json @@ -0,0 +1,10 @@ +[ + { + "path": "penny.svg", + "license": "CC0", + "authors": [ + "Robin van der Linde" + ], + "sources": [] + } +] \ No newline at end of file diff --git a/assets/themes/elongated_coin/penny.svg b/assets/themes/elongated_coin/penny.svg new file mode 100644 index 0000000000..a544fa7227 --- /dev/null +++ b/assets/themes/elongated_coin/penny.svg @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + diff --git a/assets/themes/mapcomplete-changes/mapcomplete-changes.json b/assets/themes/mapcomplete-changes/mapcomplete-changes.json index 336b11205c..cbd1ec45ed 100644 --- a/assets/themes/mapcomplete-changes/mapcomplete-changes.json +++ b/assets/themes/mapcomplete-changes/mapcomplete-changes.json @@ -250,6 +250,10 @@ "if": "theme=education", "then": "./assets/layers/school/college.svg" }, + { + "if": "theme=elongated_coin", + "then": "./assets/themes/elongated_coin/penny.svg" + }, { "if": "theme=etymology", "then": "./assets/layers/etymology/logo.svg"