Themes: add velopark theme

This commit is contained in:
Pieter Vander Vennet 2024-01-11 05:10:29 +01:00
parent ac9792ac43
commit 1c1cea7f03
8 changed files with 209 additions and 0 deletions

View file

@ -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 <b>pay</b> to use this bicycle parking",
"nl": "<b>Betalende</b> 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?",

View file

@ -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"

View file

@ -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"
]
}
]

View file

@ -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": "<a href='https://www.velopark.be/static/data/{_velopark:id}' target='_blank'><img src='./assets/themes/velopark/velopark.svg'></a>"
},
"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}"
}
}
}
]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Velopark.be
SPDX-License-Identifier: LicenseRef-LOGO

View file

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="500"
height="500"
viewBox="0 0 132.29167 132.29167"
version="1.1"
id="svg1"
xml:space="preserve"
inkscape:version="1.3.2 (1:1.3.2+202311252150+091e20ef0f)"
sodipodi:docname="Velopark.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
id="namedview1"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="px"
inkscape:zoom="0.74867948"
inkscape:cx="104.85128"
inkscape:cy="275.81897"
inkscape:window-width="1920"
inkscape:window-height="995"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" /><defs
id="defs1" /><g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-30.966013,-201.92197)"><path
style="fill:#fec217;fill-opacity:1;stroke-width:2.3753"
d="m 36.560015,327.65027 c -1.416817,-0.64345 -3.255073,-2.122 -4.085016,-3.28566 l -1.508986,-2.11572 v -45.24941 -45.2494 l 1.463591,-2.052 c 0.804977,-1.1286 2.283523,-2.47598 3.285661,-2.99422 2.996881,-1.54974 114.716315,-22.41865 118.487285,-22.13314 3.80395,0.28805 6.58715,2.0576 8.03494,5.1086 0.88273,1.86019 1.02019,5.20672 1.02019,24.8367 v 22.68684 h -17.28275 c -9.50554,0 -17.28276,-0.12684 -17.28276,-0.28178 0,-0.15487 0.7163,-2.54934 1.59181,-5.32079 2.02731,-6.41758 2.77572,-6.96672 9.49475,-6.96672 6.81366,0 7.13888,-0.15962 7.13888,-3.50166 0,-3.75863 -1.18225,-4.31221 -8.23368,-3.85537 -7.17907,0.46511 -10.8348,2.26142 -12.95793,6.36715 -0.52366,1.01263 -3.41877,9.63895 -6.43359,19.16962 l -5.48145,17.32848 -6.58141,0.0943 c -8.124219,0.11639 -13.644261,1.84446 -19.704477,6.16895 -7.090893,5.05995 -11.384237,11.63896 -13.205807,20.23615 -1.473749,6.95563 -1.185259,10.03917 1.945323,20.79261 l 0.41166,1.41404 -18.770102,-0.0143 c -16.945061,-0.0119 -19.020571,-0.12755 -21.346132,-1.18368 z m 47.626248,-0.84502 c -2.936606,-4.82004 -4.300095,-12.06166 -3.28367,-17.43988 1.000209,-5.29242 4.602979,-12.06102 8.053264,-15.12985 4.835736,-4.3011 10.112581,-6.44513 16.629383,-6.7567 3.99654,-0.19098 5.50993,-0.0575 5.50993,0.48651 0,0.41249 -1.57259,5.83083 -3.49465,12.04078 -3.9056,12.61855 -4.10288,14.95791 -1.34278,15.92266 1.17322,0.41007 2.11764,0.39988 2.82809,-0.0304 0.99299,-0.60155 3.06844,-6.36388 7.4019,-20.55093 1.35366,-4.43159 1.889,-5.45748 2.68791,-5.1509 1.87656,0.72009 6.05836,4.27767 8.42565,7.16791 6.26288,7.64629 7.19597,20.13795 2.17568,29.12662 l -1.31627,2.35675 H 106.94568 85.430662 Z m 53.001447,0.94269 c 3.15451,-7.54231 3.77133,-17.0452 1.56914,-24.17499 -2.27788,-7.37496 -9.32494,-16.08318 -15.60985,-19.2895 -1.44369,-0.73651 -2.62487,-1.44499 -2.62487,-1.57437 0,-0.5252 2.66612,-8.8728 2.91862,-9.1381 0.14988,-0.15748 9.16988,8.60798 20.04463,19.47864 l 19.7723,19.76483 v 4.46715 c 0,5.44211 -1.43715,8.03026 -5.63729,10.15211 -2.51651,1.27131 -3.71233,1.41404 -11.84587,1.41404 -8.37225,0 -9.01251,-0.082 -8.58681,-1.09981 z m 7.36917,-43.68219 c -10.10822,-10.11256 -18.37858,-18.73824 -18.37858,-19.16814 0,-0.60556 4.17663,-0.78164 18.53969,-0.78164 h 18.53969 v 19.16814 c 0,10.54247 -0.0724,19.16815 -0.16104,19.16815 -0.0886,0 -8.43147,-8.27392 -18.53969,-18.38651 z"
id="path4"
sodipodi:nodetypes="cscccssssscsssssssscssssccccsssssssssssscccssssssscssssssscssss" /></g></svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Velopark.be
SPDX-License-Identifier: LicenseRef-LOGO