forked from MapComplete/MapComplete
Themes: add proper 'image along way' possibility
This commit is contained in:
parent
29f8e08509
commit
584fb3cb57
17 changed files with 259 additions and 70 deletions
|
@ -134,6 +134,27 @@
|
|||
}
|
||||
},
|
||||
"opening_hours",
|
||||
{
|
||||
"id": "oneway",
|
||||
"question": {
|
||||
"en": "In what direction can this aerialway be taken?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "oneway=yes",
|
||||
"alsoShowIf": "oneway=",
|
||||
"then": {
|
||||
"en": "This aerialway can only be taken to the top"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "oneway=no",
|
||||
"then": {
|
||||
"en": "This aerialway can be taken in both directions"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "length",
|
||||
"render": {
|
||||
|
@ -144,7 +165,20 @@
|
|||
"lineRendering": [
|
||||
{
|
||||
"width": "4",
|
||||
"color": "black"
|
||||
"color": "black",
|
||||
"imageAlongWay": [ {
|
||||
"if": "oneway=no",
|
||||
"then": "./assets/png/twoway.png"
|
||||
},{
|
||||
"if": {
|
||||
"or": [
|
||||
"oneway=yes",
|
||||
"oneway="
|
||||
]
|
||||
},
|
||||
"then": "./assets/png/oneway.png"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"id": "aerialway",
|
||||
|
|
|
@ -96,7 +96,8 @@
|
|||
"then": "gray"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"imageAlongWay": "./assets/png/oneway.png"
|
||||
}
|
||||
],
|
||||
"id": "ski_piste",
|
||||
|
|
|
@ -14,5 +14,21 @@
|
|||
"Pieter Vander Vennet"
|
||||
],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "twoway.png",
|
||||
"license": "CC0-1.0",
|
||||
"authors": [
|
||||
"Pieter Vander Vennet"
|
||||
],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "twoway.svg",
|
||||
"license": "CC0-1.0",
|
||||
"authors": [
|
||||
"Pieter Vander Vennet"
|
||||
],
|
||||
"sources": []
|
||||
}
|
||||
]
|
BIN
assets/png/twoway.png
Normal file
BIN
assets/png/twoway.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.4 KiB |
2
assets/png/twoway.png.license
Normal file
2
assets/png/twoway.png.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Pieter Vander Vennet
|
||||
SPDX-License-Identifier: CC0
|
58
assets/png/twoway.svg
Normal file
58
assets/png/twoway.svg
Normal file
|
@ -0,0 +1,58 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="400"
|
||||
height="400"
|
||||
viewBox="0 0 400 400"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
sodipodi:docname="twoway.svg"
|
||||
inkscape:version="1.3.2 (1:1.3.2+202311252150+091e20ef0f)"
|
||||
inkscape:export-filename="twoway.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"
|
||||
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="#efe1c6"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:zoom="2.1376401"
|
||||
inkscape:cx="153.67414"
|
||||
inkscape:cy="183.14589"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="995"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg1"
|
||||
showgrid="false"
|
||||
showguides="true">
|
||||
<sodipodi:guide
|
||||
position="-44.441532,199.7792"
|
||||
orientation="0,-1"
|
||||
id="guide1"
|
||||
inkscape:locked="false" />
|
||||
</sodipodi:namedview>
|
||||
<g
|
||||
id="surface1"
|
||||
transform="matrix(0,0.46822921,-0.46822921,0,397.53821,111.31934)"
|
||||
style="stroke:none">
|
||||
<path
|
||||
id="path1"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:20;stroke-linecap:round;stroke-linejoin:bevel;stroke-opacity:1"
|
||||
d="M 0.35313437,468.46201 187.80431,842.77256 375.40782,467.93858 230.57188,530.22569 V 312.546 L 375.40782,374.83506 187.80431,-8.76875e-4 0.35313437,374.30967 c 1e-8,0 42.56450563,-17.52151 93.90429663,-39.77539 L 144.63048,312.69444 V 530.07725 L 94.257431,508.2374 C 42.917692,485.98356 0.35313438,468.46201 0.35313437,468.46201 Z" />
|
||||
</g>
|
||||
<g
|
||||
id="g2"
|
||||
transform="matrix(0,1,1,0,4.4769698,8.5883084)"
|
||||
style="stroke:none" />
|
||||
</svg>
|
After Width: | Height: | Size: 2 KiB |
2
assets/png/twoway.svg.license
Normal file
2
assets/png/twoway.svg.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Pieter Vander Vennet
|
||||
SPDX-License-Identifier: CC0
|
|
@ -7,7 +7,7 @@
|
|||
"en": "Everything you need to go skiing"
|
||||
},
|
||||
"icon": "./assets/layers/aerialway/chair_lift.svg",
|
||||
"enableTerrain": true,
|
||||
"enableTerrain": false,
|
||||
"layers": [
|
||||
"ski_piste",
|
||||
"aerialway",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue