forked from MapComplete/MapComplete
Theme(transit): Test with mobility_hub layer
This commit is contained in:
parent
17d7c82d90
commit
c4b4eef8f3
7 changed files with 285 additions and 1 deletions
60
assets/layers/mobility_hub/hub-gd.svg
Normal file
60
assets/layers/mobility_hub/hub-gd.svg
Normal file
|
@ -0,0 +1,60 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="275"
|
||||
height="275"
|
||||
viewBox="0 0 275 275"
|
||||
role="img"
|
||||
version="1.1"
|
||||
id="svg4"
|
||||
sodipodi:docname="hub-gd.svg"
|
||||
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
|
||||
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">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="namedview4"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:zoom="2.7018182"
|
||||
inkscape:cx="137.68506"
|
||||
inkscape:cy="137.5"
|
||||
inkscape:window-width="1704"
|
||||
inkscape:window-height="996"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg4" />
|
||||
<path
|
||||
d="M275 137.5c0-45.833-41.25-50.417-64.167-73.333C187.917 41.25 183.333 0 137.5 0S87.084 41.25 64.166 64.167C41.25 87.083 0 91.667 0 137.5s41.25 50.417 64.166 73.333C87.084 233.75 91.666 275 137.5 275c45.833 0 50.417-41.25 73.333-64.167C233.75 187.917 275 183.333 275 137.5z"
|
||||
class="base"
|
||||
id="path1"
|
||||
style="fill:#0078dc;fill-opacity:1" />
|
||||
<g
|
||||
class="txt"
|
||||
id="g4"
|
||||
style="fill:#ffffff">
|
||||
<path
|
||||
d="M108.479 137.215v29.596h-8.781v-26.994c0-3.469.217-8.022-.976-11.383-1.626-4.553-5.637-6.722-10.3-6.722-2.167 0-8.021.65-11.382 6.397-2.494 4.445-2.385 9.215-2.385 13.876v24.826h-8.673V99.687h8.706l.075 21.159c5.855-6.288 11.817-6.722 15.394-6.722 6.83 0 10.842 2.385 13.01 4.337.434.433 1.192 1.192 2.168 2.601 3.36 4.879 3.144 10.408 3.144 16.153z"
|
||||
class="h"
|
||||
id="path2"
|
||||
style="fill:#ffffff" />
|
||||
<path
|
||||
d="M158.705 166.811h-8.456l-.108-7.805c-.434.65-.976 1.41-2.169 2.602-4.12 4.12-9.323 6.504-15.177 6.504-1.843 0-9.757-.325-13.66-6.721-2.927-4.879-2.601-10.407-2.601-15.72V115.75h8.564v29.054c0 5.42 0 7.805 1.192 10.3 1.084 2.167 3.795 4.878 9.324 4.878 1.951 0 8.456-.434 12.142-5.855 2.601-3.794 2.493-8.456 2.493-12.792V115.75h8.456v51.061z"
|
||||
class="u"
|
||||
id="path3"
|
||||
style="fill:#ffffff" />
|
||||
<path
|
||||
d="M217.268 141.226c0 2.82 0 11.492-5.529 18.756-3.035 4.01-6.288 5.745-8.022 6.504-1.735.759-5.096 1.952-10.083 1.952-6.07 0-9.431-1.735-11.708-3.036-2.385-1.41-4.12-2.927-5.746-5.204v6.613h-8.672V99.687h8.672v23.11c.434-.65 1.084-1.735 2.385-2.927 4.012-4.011 9.649-5.746 15.178-5.746 3.469 0 11.058.542 17.237 7.697 2.927 3.47 6.288 9.106 6.288 19.405zm-9.215-.325c0-1.626.108-6.504-2.385-10.95-1.518-2.601-5.42-7.913-13.443-7.913-6.179 0-9.648 2.927-11.275 4.661-2.602 2.711-4.878 6.722-4.987 14.744 0 5.638 1.193 9.107 2.385 11.275 1.41 2.819 5.313 8.348 13.877 8.348 2.927 0 5.854-.65 8.24-2.277 3.577-2.385 7.588-7.914 7.588-17.888z"
|
||||
class="b"
|
||||
id="path4"
|
||||
style="fill:#ffffff" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3 KiB |
2
assets/layers/mobility_hub/hub-gd.svg.license
Normal file
2
assets/layers/mobility_hub/hub-gd.svg.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Provincie Groningen; Provincie Drenthe
|
||||
SPDX-License-Identifier: LicenseRef-ALL-RIGHTS-RESERVED
|
21
assets/layers/mobility_hub/license_info.json
Normal file
21
assets/layers/mobility_hub/license_info.json
Normal file
|
@ -0,0 +1,21 @@
|
|||
[
|
||||
{
|
||||
"path": "hub-gd.svg",
|
||||
"license": "ALL-RIGHTS-RESERVED",
|
||||
"authors": [
|
||||
"Provincie Groningen",
|
||||
"Provincie Drenthe"
|
||||
],
|
||||
"sources": [
|
||||
"https://www.reisviahub.nl/"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "logo-hub.svg",
|
||||
"license": "ALL-RIGHTS-RESERVED",
|
||||
"authors": [
|
||||
"Mijksenaar"
|
||||
],
|
||||
"sources": []
|
||||
}
|
||||
]
|
61
assets/layers/mobility_hub/logo-hub.svg
Normal file
61
assets/layers/mobility_hub/logo-hub.svg
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
width="500"
|
||||
height="500"
|
||||
viewBox="0 0 500 500"
|
||||
sodipodi:docname="logo-hub.svg"
|
||||
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
|
||||
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">
|
||||
<defs
|
||||
id="defs1" />
|
||||
<sodipodi:namedview
|
||||
id="namedview1"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:zoom="0.68921927"
|
||||
inkscape:cx="263.34145"
|
||||
inkscape:cy="171.93367"
|
||||
inkscape:window-width="1704"
|
||||
inkscape:window-height="996"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g2" />
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
inkscape:label="Image"
|
||||
id="g1">
|
||||
<g
|
||||
id="g2"
|
||||
transform="matrix(0.95907346,0,0,0.95907346,-181.59777,-157.86425)">
|
||||
<path
|
||||
style="fill:#00b26b;fill-opacity:1;stroke:none;stroke-width:0.99"
|
||||
d="m 436.5236,681.36291 c -6.74741,-2.13918 -14.9843,-7.26966 -34.32508,-21.37991 -68.5756,-50.02998 -120.91693,-107.10242 -149.04086,-162.51261 -17.0909,-33.67273 -25.59741,-65.40593 -26.628,-99.33465 -1.15068,-37.88281 6.06308,-71.70048 22.46148,-105.29805 30.02816,-61.52265 86.3781,-106.04268 152.70885,-120.6497 17.43029,-3.83841 28.50629,-4.98052 48.30017,-4.98052 19.79387,0 30.86987,1.14211 48.30016,4.98052 94.21933,20.7485 164.51505,100.20844 174.54536,197.3003 1.58552,15.34767 0.64021,42.86331 -1.97525,57.4944 -13.20508,73.87025 -65.11208,147.83867 -152.43593,217.22396 -13.05291,10.37151 -39.96705,29.70314 -46.65434,33.51044 -10.2471,5.83402 -23.90103,7.24594 -35.25656,3.64582 z"
|
||||
id="path1"
|
||||
sodipodi:nodetypes="sssssssssssss" />
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:177.423px;font-family:MnSymbol;-inkscape-font-specification:MnSymbol;text-align:start;letter-spacing:1px;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:5.41727;stroke-dasharray:none;paint-order:fill markers stroke"
|
||||
x="295.55676"
|
||||
y="457.04883"
|
||||
id="text1"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan1"
|
||||
x="295.55676"
|
||||
y="457.04883"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:177.423px;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;letter-spacing:1px;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:5.41727;stroke-dasharray:none">hub</tspan></text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3 KiB |
2
assets/layers/mobility_hub/logo-hub.svg.license
Normal file
2
assets/layers/mobility_hub/logo-hub.svg.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Mijksenaar
|
||||
SPDX-License-Identifier: LicenseRef-ALL-RIGHTS-RESERVED
|
137
assets/layers/mobility_hub/mobility_hub.json
Normal file
137
assets/layers/mobility_hub/mobility_hub.json
Normal file
|
@ -0,0 +1,137 @@
|
|||
{
|
||||
"credits": "Robin van der Linde",
|
||||
"minzoom": 8,
|
||||
"pointRendering": [
|
||||
{
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"marker": [
|
||||
{
|
||||
"icon": {
|
||||
"mappings": [
|
||||
{
|
||||
"if": "network=Groningen-Drenthe",
|
||||
"then": "./assets/layers/mobility_hub/hub-gd.svg"
|
||||
}
|
||||
],
|
||||
"render": "./assets/layers/mobility_hub/logo-hub.svg"
|
||||
}
|
||||
}
|
||||
],
|
||||
"anchor": {
|
||||
"render": "bottom",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "network=Groningen-Drenthe",
|
||||
"then": "center"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"tagRenderings": [
|
||||
"images",
|
||||
{
|
||||
"question": {
|
||||
"en": "What is the name of this mobility hub?",
|
||||
"nl": "Wat is de naam van deze mobiliteitshub?"
|
||||
},
|
||||
"id": "name",
|
||||
"render": {
|
||||
"en": "This mobility hub is called {name}",
|
||||
"nl": "Deze mobiliteitshub heet {name}"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "name",
|
||||
"type": "string",
|
||||
"placeholder": {
|
||||
"en": "Name of the mobility hub",
|
||||
"nl": "Naam van de mobiliteitshub"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
"en": "To which network does this mobility hub belong to?",
|
||||
"nl": "Bij welk netwerk hoort deze mobiliteitshub?"
|
||||
},
|
||||
"id": "network",
|
||||
"freeform": {
|
||||
"key": "network",
|
||||
"type": "string",
|
||||
"placeholder": {
|
||||
"en": "Network for this mobility hub",
|
||||
"nl": "Netwerk van deze mobiliteitshub"
|
||||
}
|
||||
},
|
||||
"render": {
|
||||
"en": "This mobility hub belongs to the network {network}",
|
||||
"nl": "Deze mobiliteitshub hoort bij het netwerk {network}"
|
||||
}
|
||||
},
|
||||
"website"
|
||||
],
|
||||
"lineRendering": [
|
||||
{
|
||||
"width": 1,
|
||||
"color": {
|
||||
"render": "#00b26b",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "network=Groningen-Drenthe",
|
||||
"then": "#0077db"
|
||||
},
|
||||
{
|
||||
"if": "network=Jelbi",
|
||||
"then": "#f0d722"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"credits:uid": 5093765,
|
||||
"id": "mobility_hub",
|
||||
"name": {
|
||||
"en": "Mobility Hubs",
|
||||
"nl": "Mobiliteitshubs"
|
||||
},
|
||||
"source": {
|
||||
"osmTags": "amenity=mobility_hub"
|
||||
},
|
||||
"description": {
|
||||
"en": "Mobility hubs are places where different kinds of transit meet, making it easy to switch between them",
|
||||
"nl": "Mobiliteitshubs zijn plaatsen waar verschillende soorten vervoer bij elkaar komen, waardoor het makkelijk is om te wisselen van vervoer"
|
||||
},
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Mobility hub",
|
||||
"nl": "Mobiliteitshub"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~.*",
|
||||
"then": {
|
||||
"en": "Mobility hub {name}",
|
||||
"nl": "Mobiliteitshub {name}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"presets": [
|
||||
{
|
||||
"title": {
|
||||
"en": "a mobility hub",
|
||||
"nl": "een mobiliteitshub"
|
||||
},
|
||||
"tags": [
|
||||
"amenity=mobility_hub"
|
||||
]
|
||||
}
|
||||
],
|
||||
"allowMove": {
|
||||
"enableImproveAccuracy": true,
|
||||
"enableRelocation": false
|
||||
}
|
||||
}
|
|
@ -41,6 +41,7 @@
|
|||
"Robin van der Linde"
|
||||
],
|
||||
"layers": [
|
||||
"mobility_hub",
|
||||
"transit_stops",
|
||||
"transit_routes",
|
||||
{
|
||||
|
@ -74,4 +75,4 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue