diff --git a/assets/layers/bike_parking/bike_parking.json b/assets/layers/bike_parking/bike_parking.json index 14a020622..77b74f3b7 100644 --- a/assets/layers/bike_parking/bike_parking.json +++ b/assets/layers/bike_parking/bike_parking.json @@ -634,6 +634,40 @@ ], "id": "Access" }, + { + "id": "fee", + "question": { + "en": "Are these bicycle parkings free to use?", + "nl": "Is deze fietsenstalling gratis te gebruiken?" + }, + "mappings": [ + { + "if": "fee=yes", + "then": { + "en": "One has to pay to use this bicycle parking", + "nl": "Betalende fietsparking" + } + }, + { + "if": "fee=no", + "alsoShowIf": "fee=", + "then": { + "en": "Free to use", + "nl": "Gratis te gebruiken" + } + } + ] + }, + { + "builtin": "opening_hours_24_7", + "override": { + "mappings": [ + { + "alsoShowIf": "opening_hours=" + } + ] + } + }, { "question": { "en": "Does this bicycle parking have spots for cargo bikes?", diff --git a/assets/themes/mapcomplete-changes/mapcomplete-changes.json b/assets/themes/mapcomplete-changes/mapcomplete-changes.json index 6c7376596..328b79b1b 100644 --- a/assets/themes/mapcomplete-changes/mapcomplete-changes.json +++ b/assets/themes/mapcomplete-changes/mapcomplete-changes.json @@ -412,6 +412,10 @@ "if": "theme=uk_addresses", "then": "./assets/themes/uk_addresses/housenumber_unknown.svg" }, + { + "if": "theme=velopark", + "then": "./assets/themes/velopark/velopark.svg" + }, { "if": "theme=vending_machine", "then": "./assets/layers/vending_machine/vending_machine.svg" diff --git a/assets/themes/velopark/license_info.json b/assets/themes/velopark/license_info.json new file mode 100644 index 000000000..207dd4bae --- /dev/null +++ b/assets/themes/velopark/license_info.json @@ -0,0 +1,22 @@ +[ + { + "path": "velopark.png", + "license": "LOGO", + "authors": [ + "Velopark.be" + ], + "sources": [ + "https://velopark.be" + ] + }, + { + "path": "velopark.svg", + "license": "LOGO", + "authors": [ + "Velopark.be" + ], + "sources": [ + "https://velopark.be" + ] + } +] \ No newline at end of file diff --git a/assets/themes/velopark/velopark.json b/assets/themes/velopark/velopark.json new file mode 100644 index 000000000..a275f503c --- /dev/null +++ b/assets/themes/velopark/velopark.json @@ -0,0 +1,102 @@ +{ + "id": "velopark", + "title": { + "nl": "Velopark naar OpenStreetMap sync tool" + }, + "description": "A commisioned theme", + "hideFromOverview": true, + "icon": "./assets/themes/velopark/velopark.svg", + "mustHaveLanguage": [ + "nl" + ], + "lockLocation": [ + [ + 2.51357303225, + 49.5294835476 + ], + [ + 6.15665815596, + 51.4750237087 + ] + ], + "startLat": 51.03753, + "startLon": 3.71025, + "startZoom": 18, + "layers": [ + { + "builtin": [ + "bike_parking" + ], + "override": { + "id": "bike_parking_with_velopark_ref", + "=presets": [], + "=name": { + "en": "Bicycle parkings with velopark ID", + "nl": "Fietsparking met Velopark-referentie" + }, + "source": { + "osmTags": { + "and+": [ + "ref:velopark~*" + ] + } + }, + "calculatedTags": [ + "_velopark:id=feat.properties['ref:velopark'].substr(feat.properties['ref:velopark'].lastIndexOf('/') + 1)" + ], + "pointRendering": [ + { + "marker": [ + { + "color": "#0088ff" + } + ] + } + ], + "=titleIcons": [ + { + "condition": "_velopark:id~*", + "render": "" + }, + "icons.defaults" + ], + "minzoom": 8 + } + }, + "bike_parking", + { + "builtin": ["toilet","bike_repair_station","bicycle_rental"], + "override": { + "minzoom": 18 + } + } + ], + "overrideAll": { + "+tagRenderings": [ + { + "id": "velopark-ref", + "condition": "amenity=bicycle_parking", + "freeform": { + "key": "ref:velopark", + "inline": false, + "type": "velopark" + }, + "question": { + "en": "What is the URL of the data path within Velopark?", + "nl": "Wat is de data-url van deze fietsenstalling in Velopark.be?" + }, + "icon": { + "path": "./assets/themes/velopark/velopark.svg", + "class": "medium" + }, + "render": { + "special": { + "type": "link", + "href": "{ref:velopark}", + "text": "{ref:velopark}" + } + } + } + ] + } +} diff --git a/assets/themes/velopark/velopark.png b/assets/themes/velopark/velopark.png new file mode 100644 index 000000000..7b17481ad Binary files /dev/null and b/assets/themes/velopark/velopark.png differ diff --git a/assets/themes/velopark/velopark.png.license b/assets/themes/velopark/velopark.png.license new file mode 100644 index 000000000..c4e688e62 --- /dev/null +++ b/assets/themes/velopark/velopark.png.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Velopark.be +SPDX-License-Identifier: LicenseRef-LOGO \ No newline at end of file diff --git a/assets/themes/velopark/velopark.svg b/assets/themes/velopark/velopark.svg new file mode 100644 index 000000000..a89184331 --- /dev/null +++ b/assets/themes/velopark/velopark.svg @@ -0,0 +1,43 @@ + + + + diff --git a/assets/themes/velopark/velopark.svg.license b/assets/themes/velopark/velopark.svg.license new file mode 100644 index 000000000..c4e688e62 --- /dev/null +++ b/assets/themes/velopark/velopark.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Velopark.be +SPDX-License-Identifier: LicenseRef-LOGO \ No newline at end of file