Merge branch 'develop' into feature/vending-machine

This commit is contained in:
Robin van der Linde 2023-07-09 18:25:33 +02:00
commit ac64e97ede
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
54 changed files with 644 additions and 107 deletions

View file

@ -996,7 +996,7 @@
},
"mapRendering": [
{
"icon": "./assets/layers/bench/bench.svg",
"icon": "circle:white;./assets/layers/bench/bench.svg",
"iconSize": "35,35",
"iconBadges": [
{

View file

@ -203,7 +203,7 @@
],
"mapRendering": [
{
"icon": "./assets/themes/benches/bench_public_transport.svg",
"icon": "circle:white;./assets/themes/benches/bench_public_transport.svg",
"iconSize": "35,35",
"location": [
"point"

View file

@ -1285,9 +1285,9 @@
"render": {
"en": "There are <b class='text-xl'>{socket:chademo}</b> plugs of type <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div> available here",
"nl": "Hier zijn <b class='text-xl'>{socket:chademo}</b> stekkers van het type <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div>",
"ca": "Aquí hi ha <b class='text-xl'>{socket:chademo}</b> endolls del tipus <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div> disponibles",
"da": "Der er <b class='text-xl'>{socket:chademo}</b> stik af typen <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div> tilgængelig her",
"de": "Hier sind <b class='text-xl'>{socket:chademo}</b> Stecker des Typs <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div> vorhanden",
"ca": "Aquí hi ha <b class='text-xl'>{socket:chademo}</b> endolls del tipus <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div> disponibles"
"de": "Hier sind <b class='text-xl'>{socket:chademo}</b> Stecker des Typs <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div> vorhanden"
},
"freeform": {
"key": "socket:chademo",
@ -1431,8 +1431,8 @@
"render": {
"en": "There are <b class='text-xl'>{socket:type2_combo}</b> plugs of type <div style='display: inline-block'><b><b>Type 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div> available here",
"nl": "Hier zijn <b class='text-xl'>{socket:type2_combo}</b> stekkers van het type <div style='display: inline-block'><b><b>Type 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div>",
"de": "Hier sind <b class='text-xl'>{socket:type2_combo}</b> Stecker des Typs <div style='display: inline-block'><b><b>Typ 2 CCS</b> (Mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div> vorhanden",
"ca": "Aquí hi ha <b class='text-xl'>{socket:type2_combo}</b> endolls del tipus <div style='display: inline-block'><b><b>Tipus 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div> disponibles"
"ca": "Aquí hi ha <b class='text-xl'>{socket:type2_combo}</b> endolls del tipus <div style='display: inline-block'><b><b>Tipus 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div> disponibles",
"de": "Hier sind <b class='text-xl'>{socket:type2_combo}</b> Stecker des Typs <div style='display: inline-block'><b><b>Typ 2 CCS</b> (Mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div> vorhanden"
},
"freeform": {
"key": "socket:type2_combo",
@ -1927,9 +1927,9 @@
"question": {
"en": "What current do the plugs with <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div> offer?",
"nl": "Welke stroom levert de stekker van type <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div>?",
"ca": "Quin corrent ofereixen els endolls amb <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div>?",
"da": "Hvilken strømstyrke har stikkene med <div style='display: inline-block'><b><b> Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div> ?",
"de": "Welche Stromstärke liefern die Stecker mit <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div>?",
"ca": "Quin corrent ofereixen els endolls amb <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div>?"
"de": "Welche Stromstärke liefern die Stecker mit <div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div>?"
},
"render": {
"en": "<div style='display: inline-block'><b><b>Chademo</b></b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Chademo_type4.svg'/></div> outputs at most {socket:chademo:current}A",
@ -1946,9 +1946,9 @@
"then": {
"en": "<b>Chademo</b> outputs at most 120 A",
"nl": "<b>Chademo</b> levert een stroom van maximaal 120 A",
"ca": "<b>Chademo</b> surt com a màxim a 120 A",
"da": "<b>Chademo</b> yder højst 120 A",
"de": "<b>Chademo</b> liefert maximal 120 A",
"ca": "<b>Chademo</b> surt com a màxim a 120 A"
"de": "<b>Chademo</b> liefert maximal 120 A"
},
"icon": {
"path": "./assets/layers/charging_station/Chademo_type4.svg",
@ -1988,8 +1988,8 @@
"then": {
"en": "<b>Chademo</b> outputs at most 50 kw A",
"nl": "<b>Chademo</b> levert een vermogen van maximaal 50 kw A",
"de": "<b>Chademo</b> liefert maximal 50 kw A",
"ca": "<b>Chademo</b> surt com a màxim a 50 kw A"
"ca": "<b>Chademo</b> surt com a màxim a 50 kw A",
"de": "<b>Chademo</b> liefert maximal 50 kw A"
},
"icon": {
"path": "./assets/layers/charging_station/Chademo_type4.svg",
@ -2834,8 +2834,8 @@
"question": {
"en": "What voltage do the plugs with <div style='display: inline-block'><b><b>Type 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div> offer?",
"nl": "Welke spanning levert de stekker van type <div style='display: inline-block'><b><b>Type 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div>",
"de": "Welche Spannung liefern die Stecker mit <div style='display: inline-block'><b><b>Typ 2 CCS</b> (Mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div>?",
"ca": "Quin voltatge ofereixen els endolls amb <div style='display: inline-block'><b><b>Tipus 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div>?"
"ca": "Quin voltatge ofereixen els endolls amb <div style='display: inline-block'><b><b>Tipus 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div>?",
"de": "Welche Spannung liefern die Stecker mit <div style='display: inline-block'><b><b>Typ 2 CCS</b> (Mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div>?"
},
"render": {
"en": "<div style='display: inline-block'><b><b>Type 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div> outputs {socket:type2_combo:voltage} volt",
@ -2852,8 +2852,8 @@
"then": {
"en": "<b>Type 2 CCS</b> (mennekes) outputs 500 volt",
"nl": "<b>Type 2 CCS</b> (mennekes) heeft een spanning van 500 volt",
"de": "<b>Typ 2 CCS</b> (Mennekes) liefert 500 Volt",
"ca": "<b>Tipus 2 CCS</b> (mennekes) surt a 500 volts"
"ca": "<b>Tipus 2 CCS</b> (mennekes) surt a 500 volts",
"de": "<b>Typ 2 CCS</b> (Mennekes) liefert 500 Volt"
},
"icon": {
"path": "./assets/layers/charging_station/Type2_CCS.svg",
@ -2865,8 +2865,8 @@
"then": {
"en": "<b>Type 2 CCS</b> (mennekes) outputs 920 volt",
"nl": "<b>Type 2 CCS</b> (mennekes) heeft een spanning van 920 volt",
"de": "<b>Typ 2 CCS</b> (Mennekes) liefert 920 Volt",
"ca": "<b>Tipus 2 CCS</b> (mennekes) surt a 920 volts"
"ca": "<b>Tipus 2 CCS</b> (mennekes) surt a 920 volts",
"de": "<b>Typ 2 CCS</b> (Mennekes) liefert 920 Volt"
},
"icon": {
"path": "./assets/layers/charging_station/Type2_CCS.svg",
@ -2889,9 +2889,9 @@
"question": {
"en": "What current do the plugs with <div style='display: inline-block'><b><b>Type 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div> offer?",
"nl": "Welke stroom levert de stekker van type <div style='display: inline-block'><b><b>Type 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div>?",
"ca": "Quin corrent ofereixen els endolls amb <div style='display: inline-block'><b><b>Tipus 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div>?",
"da": "Hvilken strømstyrke giver stikkene med <div style='display: inline-block'><b><b> Type 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div> ?",
"de": "Welche Stromstärke liefern die Stecker mit <div style='display: inline-block'><b><b>Typ 2 CCS</b> (Mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div>?",
"ca": "Quin corrent ofereixen els endolls amb <div style='display: inline-block'><b><b>Tipus 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div>?"
"de": "Welche Stromstärke liefern die Stecker mit <div style='display: inline-block'><b><b>Typ 2 CCS</b> (Mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div>?"
},
"render": {
"en": "<div style='display: inline-block'><b><b>Type 2 CCS</b> (mennekes)</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/Type2_CCS.svg'/></div> outputs at most {socket:type2_combo:current}A",
@ -2909,9 +2909,9 @@
"then": {
"en": "<b>Type 2 CCS</b> (mennekes) outputs at most 125 A",
"nl": "<b>Type 2 CCS</b> (mennekes) levert een stroom van maximaal 125 A",
"ca": "<b>Tipus 2 CCS</b> (mennekes) surt com a màxim a 125 A",
"da": "<b>Type 2 CCS</b> (mennekes) udgange på højst 125 A",
"de": "<b>Typ 2 CCS</b> (Mennekes) liefert maximal 125 A",
"ca": "<b>Tipus 2 CCS</b> (mennekes) surt com a màxim a 125 A"
"de": "<b>Typ 2 CCS</b> (Mennekes) liefert maximal 125 A"
},
"icon": {
"path": "./assets/layers/charging_station/Type2_CCS.svg",
@ -2923,9 +2923,9 @@
"then": {
"en": "<b>Type 2 CCS</b> (mennekes) outputs at most 350 A",
"nl": "<b>Type 2 CCS</b> (mennekes) levert een stroom van maximaal 350 A",
"ca": "<b>Tipus 2 CCS</b> (mennekes) surt com a màxim a 350 A",
"da": "<b>Type 2 CCS</b> (mennekes) udgange højst 350 A",
"de": "<b>Typ 2 CCS</b> (Mennekes) liefert maximal 350 A",
"ca": "<b>Tipus 2 CCS</b> (mennekes) surt com a màxim a 350 A"
"de": "<b>Typ 2 CCS</b> (Mennekes) liefert maximal 350 A"
},
"icon": {
"path": "./assets/layers/charging_station/Type2_CCS.svg",
@ -2965,8 +2965,8 @@
"then": {
"en": "<b>Type 2 CCS</b> (mennekes) outputs at most 50 kw A",
"nl": "<b>Type 2 CCS</b> (mennekes) levert een vermogen van maximaal 50 kw A",
"de": "<b>Typ 2 CCS</b> (Mennekes) liefert maximal 50 kw A",
"ca": "<b>Tipus 2 CCS</b> (mennekes) surt com a màxim 50 kw A"
"ca": "<b>Tipus 2 CCS</b> (mennekes) surt com a màxim 50 kw A",
"de": "<b>Typ 2 CCS</b> (Mennekes) liefert maximal 50 kw A"
},
"icon": {
"path": "./assets/layers/charging_station/Type2_CCS.svg",
@ -4405,11 +4405,11 @@
"render": {
"en": "In case of problems, call <a href='tel:{phone}'>{phone}</a>",
"nl": "Bij problemen, bel naar <a href='tel:{phone}'>{phone}</a>",
"ca": "En cas de problemes, truqueu a <a href='tel:{phone}'>{phone}</a>",
"da": "I tilfælde af problemer, ring til <a href='tel:{phone}'>{phone}</a>",
"de": "Bei Problemen, anrufen unter <a href='tel:{phone}'>{phone}</a>",
"es": "En caso de problemas, llama a <a href='tel:{phone}'>{phone}</a>",
"fr": "En cas de problèmes, appelez le <a href='tel:{phone}'>{phone}</a>",
"ca": "En cas de problemes, truqueu a <a href='tel:{phone}'>{phone}</a>"
"fr": "En cas de problèmes, appelez le <a href='tel:{phone}'>{phone}</a>"
},
"freeform": {
"key": "phone",
@ -4462,9 +4462,9 @@
"question": {
"en": "What is the reference number of this charging station?",
"nl": "Wat is het referentienummer van dit oplaadstation?",
"ca": "Quin és el número de referència d'aquest punt de càrrega?",
"de": "Welche Kennnummer hat die Ladestation?",
"es": "¿Cual es el número de referencia de esta estación de carga?",
"ca": "Quin és el número de referència d'aquest punt de càrrega?"
"es": "¿Cual es el número de referencia de esta estación de carga?"
},
"render": {
"en": "Reference number is <b>{ref}</b>",
@ -4633,9 +4633,7 @@
]
}
},
{
"id": "questions"
},
"questions",
{
"id": "questions-technical",
"render": {
@ -5229,4 +5227,4 @@
},
"neededChangesets": 10
}
}
}

View file

@ -719,9 +719,7 @@
]
}
},
{
"id": "questions"
},
"questions",
{
"id": "questions-technical",
"render": {

View file

@ -48,6 +48,16 @@
"ca": "Bicicleta blanca"
},
"mappings": [
{
"if": "subject~*",
"then": {
"en": "Ghost bike in the remembrance of {subject}",
"nl": "Witte fiets ter nagedachtenis van {subject}",
"de": "Geisterrad im Gedenken an {subject}",
"it": "Bici fantasma in ricordo di {subject}",
"fr": "Vélo fantôme en souvenir de {subject}"
}
},
{
"if": "name~*",
"then": {
@ -111,17 +121,33 @@
"fr": "À qui est dédié ce vélo fantôme ?"
},
"render": {
"en": "In remembrance of {name}",
"nl": "Ter nagedachtenis van {name}",
"de": "Im Gedenken an {name}",
"it": "In ricordo di {name}",
"fr": "En souvenir de {name}",
"ru": "В знак памяти о {name}"
"en": "In remembrance of {subject}",
"nl": "Ter nagedachtenis van {subject}",
"de": "Im Gedenken an {subject}",
"it": "In ricordo di {subject}",
"fr": "En souvenir de {subject}",
"ru": "В знак памяти о {subject}"
},
"freeform": {
"key": "name"
"key": "subject",
"addExtraTags": [
"noname=",
"name="
]
},
"mappings": [
{
"if": "name~*",
"then": {
"en": "In remembrance of {name}",
"nl": "Ter nagedachtenis van {name}",
"de": "Im Gedenken an {name}",
"it": "In ricordo di {name}",
"fr": "En souvenir de {name}",
"ru": "В знак памяти о {name}"
},
"hideInAnswer": true
},
{
"if": "noname=yes",
"then": {
@ -131,7 +157,11 @@
"it": "Nessun nome scritto sulla bici",
"fr": "Aucun nom n'est marqué sur le vélo",
"ca": "No hi ha cap nom marcat a la bicicleta"
}
},
"addExtraTags": [
"name=",
"subject="
]
}
],
"id": "ghost_bike-name",

View file

@ -43,6 +43,81 @@
},
"tagRenderings": [
"images",
{
"id": "map_type",
"question": {
"en": "What type of map is shown?",
"de": "Was für eine Karte ist das?"
},
"mappings": [
{
"if": "map_type=topo",
"then": {
"en": "Topographical map <p class='subtle'>The map contains contour lines. </p>"
}
},
{
"if": "map_type=street",
"then": {
"en": "A map with all streets or ways of an area. <p class='subtle'>The streets are mostly named; the angles, distances etc. are accurate</p>"
}
},
{
"if": "map_type=scheme",
"then": {
"en": "This is a schematic map. <p class='subtle'>A sketched map with only important ways and POIs. The angles, distances etc. are merely illustrative, not accurate.</p> "
}
},
{
"if": "map_type=toposcope",
"then": {
"en": "This is a toposcope. <p class='subtle'>A marker erected on high places which indicates the direction to notable landscape features which can be seen from that point<p>"
}
}
]
},
{
"id": "map_size",
"question": {
"en": "What is the size of the shown area on the map?",
"de": "Was wird von der Fläche abgedeckt?"
},
"mappings": [
{
"if": "map_size=building",
"then": {
"en": "A map of the romms within a building"
}
},
{
"if": "map_size=site",
"then": {
"en": "A map of special site, like of a historical castle, a park, a campus, a forest, ....",
"de": "Örtlichkeit (z.B. Burg)"
}
},
{
"if": "map_size=village",
"then": {
"en": "A map showing the village or town"
}
},
{
"if": "map_size=city",
"then": {
"en": " A map of a city.",
"de": "Stadt"
}
},
{
"if": "map_size=region",
"then": {
"en": "The map of an entire region, showing multiple cities and villages",
"de": "Region"
}
}
]
},
{
"labels": [
"map"

View file

@ -0,0 +1,12 @@
[
{
"path": "plaque.svg",
"license": "CC-0",
"authors": [
"OSM Carto"
],
"sources": [
"https://wiki.openstreetmap.org/wiki/File:Plaque.svg"
]
}
]

View file

@ -0,0 +1,41 @@
{
"id": "memorial",
"description": "Layer showing memorial plaques, based upon a unofficial theme. Can be expanded to have multiple types of memorials later on",
"source": {
"osmTags": "memorial=plaque"
},
"title": {
"render": {
"en": "Memorial plaque"
}
},
"tagRenderings": [
{
"id": "inscription",
"question": {
"en": "What is the inscription of this plaque?"
},
"render": {
"en": "The inscription on this plaque reads: <p><i>{inscription}<i></p>"
},
"freeform": {
"key": "inscription",
"type": "text"
}
}
],
"mapRendering": [
{
"location": [
"centroid",
"point"
],
"icon": "circle:white;./assets/layers/memorial/plaque.svg"
}
],
"deletion": true,
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": false
}
}

View file

@ -0,0 +1,38 @@
<?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"
version="1.1"
width="14"
height="14"
viewBox="0 0 14 14"
id="svg2">
<metadata
id="metadata8">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6" />
<rect
width="14"
height="14"
x="0"
y="0"
id="canvas"
style="fill:none;stroke:none;visibility:hidden" />
<path
style="fill:#734a08;fill-opacity:1;stroke:none"
id="plaque"
d="M 2.5,2 C 1.6887616,2 1,2.6887616 1,3.5 l 0,7 C 1,11.269291 1.667788,12 2.5,12 l 9,0 c 0.748318,0 1.5,-0.709735 1.5,-1.5 l 0,-7 C 13,2.7307086 12.269291,2 11.5,2 z m 0,1 C 2.7761424,3 3,3.2238576 3,3.5 3,3.7761424 2.7761424,4 2.5,4 2.2238576,4 2,3.7761424 2,3.5 2,3.2238576 2.2238576,3 2.5,3 z m 9,0 C 11.776142,3 12,3.2238576 12,3.5 12,3.7761424 11.776142,4 11.5,4 11.223858,4 11,3.7761424 11,3.5 11,3.2238576 11.223858,3 11.5,3 z M 5,4 6,4 6,5 5,5 z M 7,4 9,4 9,5 7,5 z M 3,6 11,6 11,7 3,7 z M 5,8 9,8 9,9 5,9 z M 2.5,10 C 2.7761424,10 3,10.223858 3,10.5 3,10.776142 2.7761424,11 2.5,11 2.2238576,11 2,10.776142 2,10.5 2,10.223858 2.2238576,10 2.5,10 z m 9,0 C 11.776142,10 12,10.223858 12,10.5 12,10.776142 11.776142,11 11.5,11 11.223858,11 11,10.776142 11,10.5 11,10.223858 11.223858,10 11.5,10 z" />
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -16,7 +16,13 @@
"source": {
"osmTags": {
"and": [
"shop~*",
{
"or": [
"shop~*",
"craft=shoe_repair",
"craft=key_cutter"
]
},
"shop!=mall"
]
}
@ -128,7 +134,8 @@
"addExtraTags": [
"fixme=freeform shop key used, to be reviewed"
]
}
},
"condition": "craft="
}
},
"opening_hours",
@ -333,6 +340,14 @@
]
},
"then": "circle:white;./assets/layers/shops/shop-disused.svg"
},
{
"if": "craft=shoemaker",
"then": "circle:white;./assets/layers/id_presets/temaki-hammer_shoe.svg"
},
{
"if": "craft=key_cutter",
"then": "circle:white;./assets/layers/id_presets/fas-key.svg"
}
]
}

View file

@ -1,5 +1,5 @@
{
"id": "shared_questions",
"id": "questions",
"questions": {
"description": "Show the images block at this location",
"render": {

View file

@ -335,7 +335,98 @@
"reviews"
]
}
},
{
"builtin": [
"shops"
],
"override": {
"id": "shops_with_climbing_shoe_repair",
"source": {
"=osmTags": {
"and": [
"service:repair:climbing_shoes=yes",
{
"or": [
"shop=shoe_repair",
"craft=shoemaker"
]
}
]
}
},
"=presets": [],
"minzoom": 8,
"+tagRenderings": [
{
"id": "repairs_climbing_shoes",
"question": {
"en": "Does this shoe repair shop repair climbing shoes?"
},
"mappings": [
{
"if": "service:repair:climbing_shoes=yes",
"then": {
"en": "This shop repairs climbing shoes"
}
},
{
"if": "service:repair:climbing_shoes=no",
"then": {
"en": "This shop does not repair climbing shoes"
}
}
]
}
]
}
},
{
"builtin": [
"shops"
],
"override": {
"=osmTags": {
"or": [
"shop=shoe_repair",
"craft=shoemaker"
]
},
"minzoom": 16,
"+tagRenderings": [
{
"id": "repairs_climbing_shoes",
"question": {
"en": "Does this shoe repair shop also repair clibming shoes?"
},
"mappings": [
{
"if": "service:repair:climbing_shoes=yes",
"then": {
"en": "This shop repairs climbing shoes"
}
},
{
"if": "service:repair:climbing_shoes=no",
"then": {
"en": "This shop does not repair climbing shoes"
}
}
]
}
],
"=presets": [
{
"tags": [
"shop=shoe_repair"
],
"title": {
"en": "a shoe repair shop"
}
}
]
}
}
],
"credits": "Christian Neumann <christian@utopicode.de>"
}
}

View file

@ -47,20 +47,20 @@
"_has_left_parking=(feat.properties['parking:lane:left'] ?? feat.properties['parking:lane:both']) === 'parallel'",
"_has_right_parking=(feat.properties['parking:lane:right'] ?? feat.properties['parking:lane:both']) === 'parallel'",
"_has_other_parking= ['parking:lane:left','parking:lane:right','parking:lane:both'].some(key => ['perpendicular','diagonal'].indexOf(feat.properties[key]) >= 0)",
"_parallel_parking_count=feat.get('_has_right_parking') + feat.get('_has_left_parking') /* in javascript logic: true + true == 2*/",
"_width:needed:parking=feat.get('_parallel_parking_count') * feat.get('_car_width')",
"_parallel_parking_count=get(feat)('_has_right_parking') + get(feat)('_has_left_parking') /* in javascript logic: true + true == 2*/",
"_width:needed:parking=get(feat)('_parallel_parking_count') * get(feat)('_car_width')",
"_has_sidewalk_left=['left','both'].indexOf(feat.properties['sidewalk']) >= 0",
"_has_sidewalk_right=['right','both'].indexOf(feat.properties['sidewalk']) >= 0",
"_pedestrian_flows_in_carriageway= 2 - feat.get('_has_sidewalk_left') - feat.get('_has_sidewalk_right')",
"_width:needed:pedestrians=feat.get('_pedestrianWidth') * feat.get('_pedestrian_flows_in_carriageway')",
"_pedestrian_flows_in_carriageway= 2 - get(feat)('_has_sidewalk_left') - get(feat)('_has_sidewalk_right')",
"_width:needed:pedestrians=get(feat)('_pedestrianWidth') * get(feat)('_pedestrian_flows_in_carriageway')",
"_oneway_car=(feat.properties['oneway:motor_vehicle'] ?? feat.properties['oneway']) == 'yes'",
"_width:needed:cars=feat.get('_car_width') * (2 - feat.get('_oneway_car'))",
"_width:needed:cars=get(feat)('_car_width') * (2 - get(feat)('_oneway_car'))",
"_cycling_allowed=feat.properties.bicycle != 'use_sidepath' && feat.properties.bicycle!='no'",
"_oneway_bicycle=((feat.properties['oneway:bicycle'] ?? feat.properties['oneway']) == 'yes') && feat.properties['cycleway'] != 'opposite'",
"_width:needed:cyclists=feat.get('_cycling_allowed') ? (feat.get('_cyclistWidth') * (2 - feat.get('_oneway_bicycle'))) : 0",
"_width:needed:total:=feat.get('_width:needed:cars') + feat.get('_width:needed:parking') + feat.get('_width:needed:cyclists') + feat.get('_width:needed:pedestrians')",
"_width:difference:=feat.get('_width:needed:total') - feat.get('width:carriageway')",
"_width:difference:no_pedestrians:=feat.get('_width:difference') - feat.get('_width:needed:pedestrians')"
"_width:needed:cyclists=get(feat)('_cycling_allowed') ? (get(feat)('_cyclistWidth') * (2 - get(feat)('_oneway_bicycle'))) : 0",
"_width:needed:total:=get(feat)('_width:needed:cars') + get(feat)('_width:needed:parking') + get(feat)('_width:needed:cyclists') + get(feat)('_width:needed:pedestrians')",
"_width:difference:=get(feat)('_width:needed:total') - get(feat)('width:carriageway')",
"_width:difference:no_pedestrians:=get(feat)('_width:difference') - get(feat)('_width:needed:pedestrians')"
],
"minzoom": 12,
"source": {
@ -271,4 +271,4 @@
]
}
]
}
}