Add possibility to map climbing tags on existing objects.

This commit is contained in:
Christian Neumann 2020-11-23 11:30:11 +01:00
parent 1c9d72054e
commit 5884253376
2 changed files with 169 additions and 0 deletions

View file

@ -230,6 +230,86 @@
"color": { "color": {
"render": "#0f0" "render": "#0f0"
} }
},
{
"id": "maybe_climbing",
"name": {
"nl": "Klimgelegenheiden?",
"de": "Klettermöglichkeiten?",
"en": "Climbing opportunities?"
},
"minzoom": 19,
"overpassTags": {
"or": [
"leisure=sports_centre",
"barrier=wall",
"barrier=retaining_wall",
"natural=cliff",
"natural=rock",
"natural=stone"
]
},
"title": {
"render": {
"en": "Climbing opportunity?",
"nl": "Klimgelegenheid?",
"de": "Klettermöglichkeit?"
}
},
"description": {
"nl": "Een klimgelegenheid?",
"de": "Eine Klettergelegenheit?",
"en": "A climbing opportunity?"
},
"tagRenderings": [
{
"render": {
"en": "<strong>{name}</strong>",
"de": "<strong>{name}</strong>"
},
"condition": "name~*"
},
{
"question": {
"en": "Is climbing possible here?",
"de": "Kann hier geklettert werden?"
},
"mappings": [
{
"if": {
"and": [
"sport!~climbing"
]
},
"then": {
"en": "Climbing is not possible here",
"de": "Hier kann nicht geklettert werden"
},
"hideInAnswer": true
},
{
"if": {
"and": [
"sport=climbing"
]
},
"then": {
"en": "Climbing is possible here",
"de": "Hier kann geklettert werden"
}
}
]
}
],
"icon": "./assets/themes/climbing/climbing_unknown.svg",
"hideUnderlayingFeaturesMinPercentage": 0,
"width": {
"render": "5"
},
"color": {
"render": "#ddff55"
},
"wayHandling": 0
} }
], ],
"roamingRenderings": [ "roamingRenderings": [
@ -280,6 +360,7 @@
"de": "Kann hier gebouldert werden?", "de": "Kann hier gebouldert werden?",
"en": "Is bouldering possible here?" "en": "Is bouldering possible here?"
}, },
"condition": "sport=climbing",
"mappings": [ "mappings": [
{ {
"if": "climbing:boulder=yes", "if": "climbing:boulder=yes",
@ -306,6 +387,7 @@
] ]
}, },
{ {
"condition": "sport=climbing",
"question": { "question": {
"de": "Ist Toprope-Klettern hier möglich?", "de": "Ist Toprope-Klettern hier möglich?",
"en": "Is toprope climbing possible here?" "en": "Is toprope climbing possible here?"
@ -336,6 +418,7 @@
] ]
}, },
{ {
"condition": "sport=climbing",
"question": { "question": {
"de": "Ist hier Sportklettern möglich (feste Ankerpunkte)?", "de": "Ist hier Sportklettern möglich (feste Ankerpunkte)?",
"en": "Is sport climbing possible here (fixed anchors)?" "en": "Is sport climbing possible here (fixed anchors)?"
@ -366,6 +449,7 @@
] ]
}, },
{ {
"condition": "sport=climbing",
"question": { "question": {
"de": "Ist hier traditionelles Klettern möglich (eigene Sicherung z.B. mit Klemmkleilen)?", "de": "Ist hier traditionelles Klettern möglich (eigene Sicherung z.B. mit Klemmkleilen)?",
"en": "Is traditional climbing possible here (using own gear e.g. chocks)?" "en": "Is traditional climbing possible here (using own gear e.g. chocks)?"

View file

@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="Layer_2"
x="0px"
y="0px"
width="400px"
height="400px"
viewBox="0 0 400 400"
enable-background="new 0 0 400 400"
xml:space="preserve"
sodipodi:docname="climbing_unknown.svg"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"><metadata
id="metadata970"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
id="defs968" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1916"
inkscape:window-height="1062"
id="namedview966"
showgrid="false"
inkscape:zoom="1.120976"
inkscape:cx="259.70656"
inkscape:cy="164.6459"
inkscape:window-x="0"
inkscape:window-y="16"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_2"
inkscape:document-rotation="0" />
<g
id="g963"
style="fill:#502d16">
<circle
fill-rule="evenodd"
clip-rule="evenodd"
fill="#53C9ED"
cx="190.403"
cy="92.55"
r="23.05"
id="circle953"
style="fill:#502d16" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
fill="#53C9ED"
d="M256.594,147.631l31.687-38.824 c3.497-4.285,10.495-4.362,15.628-0.171l1.643,1.34c5.135,4.191,6.461,11.062,2.965,15.346c0,0-37.64,46.27-38.512,46.778 c-4.412,4.632-8.461,6.728-13.859,4.187l-37.122-17.471V186h-60.72v-38.684l-54.157-72.381c-6.249-8.351-7.012-18.34-1.707-22.308 l1.697-1.271c5.308-3.972,14.674-0.419,20.923,7.934l48.777,65.191h34.097L256.594,147.631z"
id="path955"
style="fill:#502d16" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
fill="#53C9ED"
d="M220.993,219.764l13.847,50.956l37.23,48.658 c3.849,5.028,1.842,13.032-4.484,17.874l-2.023,1.549c-6.326,4.839-14.574,4.686-18.425-0.347l-38.7-50.578 c-0.779-1.02-1.307-2.164-1.619-3.376c-0.717-0.833-1.25-1.784-1.539-2.848l-7.947-29.245c-3.057,0.421-6.562,0.693-10.292,0.765 l-3.824,0.073c-11.378,0.218-23.561-4.499-24.396-5.07l-22.519-15.411l-6.271,41.158c-0.878,5.765-7.974,9.467-15.849,8.268 l-2.52-0.384c-7.874-1.199-13.547-6.845-12.668-12.613l8.83-57.962c0.224-1.468,3.203-9.405,4.99-12.018l1.439-2.103 c4.498-6.573,11.845-9.371,16.41-6.246l27.638,18.915V197.5h60.72L220.993,219.764z"
id="path961"
style="fill:#502d16" />
</g>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:354.436px;line-height:125%;font-family:'Nimbus Sans';-inkscape-font-specification:'Nimbus Sans Bold';letter-spacing:0px;word-spacing:0px;fill:#ddff55;fill-opacity:1;stroke:#000000;stroke-width:4.0252;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
x="157.38054"
y="346.03113"
id="text974"
transform="scale(1.0009789,0.99902204)"><tspan
sodipodi:role="line"
id="tspan972"
x="157.38054"
y="346.03113"
style="fill:#ddff55;stroke:#000000;stroke-width:4.0252;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">?</tspan></text></svg>

After

Width:  |  Height:  |  Size: 3.6 KiB