diff --git a/Models/Constants.ts b/Models/Constants.ts index 99e609b..a245740 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -1,7 +1,7 @@ import { Utils } from "../Utils"; export default class Constants { - public static vNumber = "0.4.6"; + public static vNumber = "0.4.7"; // The user journey states thresholds when a new feature gets unlocked public static userJourney = { diff --git a/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json b/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json new file mode 100644 index 0000000..5267e94 --- /dev/null +++ b/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json @@ -0,0 +1,151 @@ +{ + "id": "bicycle_tube_vending_machine", + "name": { + "en": "Bicycle tube vending machine" + }, + "title": { + "render": { + "en": "Bicycle tube vending machine" + }, + "mappings": [{ + "if": "name~*", + "then": "Bicycle tube vending machine {name}" + }] + }, + "icon": { + "render": "pin:#ffffff;./assets/layers/bicycle_tube_vending_machine/pinIcon.svg" + }, + "iconOverlays": [ + { + "if": { + "or": [ + "operational_status=broken", + "operational_status=closed" + ] + }, + "then": "close:#c33", + "badge": true + } + ], + "iconSize": "50,50,bottom", + "overpassTags": { + "and": [ + "amenity=vending_machine", + "vending~.*bicycle_tube.*" + ] + }, + "minzoom": 13, + "wayHandling": 2, + "presets": [ + { + "title": { + "en": "Bicycle tube vending machine" + }, + "tags": [ + "amenity=vending_machine", + "vending=bicycle_tube", + "vending:bicycle_tube=yes" + ] + } + ], + "color": "#6bc4f7", + "tagRenderings": [ + "images", + { + "#": "Still in use?", + "question": { + "en": "Is this vending machine still operational?" + }, + "render": { + "en": "The operational status is {operational_status" + }, + "freeform": { + "key": "operational_status" + }, + "mappings": [ + { + "if": "operational_status=", + "then": { + "en": "This vending machine works" + } + }, + { + "if": "operational_status=broken", + "then": { + "en": "This vending machine is broken" + } + }, + { + "if": "operational_status=closed", + "then": { + "en": "This vending machine is closed" + } + } + ] + }, + { + "question": "How much does a bicycle tube cost?", + "render": "A bicycle tube costs {charge}", + "freeform": { + "key": "charge" + } + }, + { + "question": "How can one pay at this tube vending machine?", + "mappings": [ + { + "if": "payment:coins=yes", + "then": "Payment with coins is possible" + }, + { + "if": "payment:notes=yes", + "then": "Payment with notes is possible" + }, + { + "if": "payment:cards=yes", + "then": "Payment with cards is possible" + } + ], + "multiAnswer": true + }, + { + "question": "Which brand of tubes are sold here?", + "freeform": { + "key": "brand" + }, + "mappings": [ + { + "if": "brand=Continental", + "then": "Continental tubes are sold here" + }, + { + "if": "brand=Schwalbe", + "then": "Schwalbe tubes are sold here" + } + ], + "multiAnswer": true + }, + { + "question": "Are other bicycle bicycle accessories sold here?", + "mappings": [ + { + "if": "vending:bicycle_light=yes", + "then": "Bicycle lights are sold here" + }, + { + "if": "vending:gloves=yes", + "then": "Gloves are sold here" + }, + { + "if": "vending:bicycle_repair_kit=yes", + "then": "Bicycle repair kits are sold here" + }, + { + "if": "vending:bicycle_pump=yes", + "then": "Bicycle pumps are sold here" + } + ], + "multiAnswer": true + } + ] +} diff --git a/assets/layers/bicycle_tube_vending_machine/pinIcon.svg b/assets/layers/bicycle_tube_vending_machine/pinIcon.svg new file mode 100644 index 0000000..7ca9e67 --- /dev/null +++ b/assets/layers/bicycle_tube_vending_machine/pinIcon.svg @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/assets/layers/bicycle_tube_vending_machine/tube.svg b/assets/layers/bicycle_tube_vending_machine/tube.svg new file mode 100644 index 0000000..c527b75 --- /dev/null +++ b/assets/layers/bicycle_tube_vending_machine/tube.svg @@ -0,0 +1,127 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + +