Merge branch 'develop' of github.com:pietervdvn/MapComplete into develop

This commit is contained in:
Pieter Vander Vennet 2021-11-04 21:57:23 +01:00
commit 4f37bf64a2
14 changed files with 1546 additions and 93 deletions

View file

@ -0,0 +1,100 @@
<?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"
width="400"
height="400"
viewBox="0 0 105.83333 105.83334"
version="1.1"
id="svg8"
sodipodi:docname="bent-pole-1.svg"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="2"
inkscape:cx="91.636778"
inkscape:cy="228.62622"
inkscape:document-units="mm"
inkscape:current-layer="g869"
inkscape:document-rotation="0"
showgrid="true"
units="px"
inkscape:window-width="2160"
inkscape:window-height="1346"
inkscape:window-x="-11"
inkscape:window-y="-11"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
id="grid835" />
</sodipodi:namedview>
<metadata
id="metadata5">
<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>
<g
inkscape:label="Laag 1"
inkscape:groupmode="layer"
id="layer1">
<g
id="g864"
transform="translate(-9.1324516,-2.7737965)">
<g
id="g869">
<g
id="g1550"
transform="matrix(1.75,0,0,1.75,-46.536839,-41.767847)">
<g
id="g1544">
<path
style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 50.142868,82.148796 V 39.815463 C 50.424145,33.62186 52.916667,31.75 59.53125,30.427083 L 76.729167,27.78125"
id="path837"
sodipodi:nodetypes="cccc" />
</g>
<path
style="fill:none;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
id="path857"
sodipodi:type="arc"
sodipodi:cx="66.672424"
sodipodi:cy="41.538971"
sodipodi:rx="4.6302085"
sodipodi:ry="2.9244671"
sodipodi:start="0"
sodipodi:end="3.1415927"
sodipodi:open="true"
sodipodi:arc-type="chord"
d="m 71.302633,41.538971 a 4.6302085,2.9244671 0 0 1 -2.315104,2.532663 4.6302085,2.9244671 0 0 1 -4.630209,0 4.6302085,2.9244671 0 0 1 -2.315104,-2.532663 z"
transform="rotate(-9)" />
<rect
style="fill:#000000;stroke:#000000;stroke-width:0.866025;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
id="rect859"
width="7.9375"
height="3.9687498"
x="46.302082"
y="80.697914" />
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

View file

@ -0,0 +1,138 @@
<?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"
width="400"
height="400"
viewBox="0 0 105.83333 105.83334"
version="1.1"
id="svg8"
sodipodi:docname="bent-pole-2.svg"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="2.8"
inkscape:cx="141.74396"
inkscape:cy="178.45475"
inkscape:document-units="mm"
inkscape:current-layer="g969"
inkscape:document-rotation="0"
showgrid="true"
units="px"
inkscape:window-width="2160"
inkscape:window-height="1346"
inkscape:window-x="-11"
inkscape:window-y="-11"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
id="grid835" />
</sodipodi:namedview>
<metadata
id="metadata5">
<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>
<g
inkscape:label="Laag 1"
inkscape:groupmode="layer"
id="layer1">
<g
id="g864"
transform="translate(-9.1324516,-2.7737965)">
<g
id="g969"
transform="translate(11.842268)">
<g
id="g1568"
transform="matrix(1.75,0,0,1.75,-37.655138,-41.767847)">
<g
id="g908">
<g
id="g1555">
<path
style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 50.20685,82.148797 50.142868,39.815463 C 50.424145,33.62186 52.916667,31.75 59.53125,30.427083 L 76.729167,27.78125"
id="path837"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
id="path857"
sodipodi:type="arc"
sodipodi:cx="66.672424"
sodipodi:cy="41.538971"
sodipodi:rx="4.6302085"
sodipodi:ry="2.9244671"
sodipodi:start="0"
sodipodi:end="3.1415927"
sodipodi:open="true"
sodipodi:arc-type="chord"
transform="rotate(-9)"
d="m 71.302633,41.538971 a 4.6302085,2.9244671 0 0 1 -2.315104,2.532663 4.6302085,2.9244671 0 0 1 -4.630209,0 4.6302085,2.9244671 0 0 1 -2.315104,-2.532663 z" />
<rect
style="fill:#000000;stroke:#000000;stroke-width:0.866025;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
id="rect859"
width="7.9375"
height="3.9687498"
x="46.302082"
y="80.697914" />
</g>
</g>
<g
id="g957"
transform="translate(11.641669,6.6145832)">
<g
id="g908-0"
transform="translate(-94.985418,38.364583)">
<g
id="g947"
transform="matrix(-1,0,0,1,183.75745,-44.851203)">
<g
id="g942">
<path
style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 50.270833,39.6875 C 50.55211,33.493897 52.916667,31.75 59.53125,30.427083 L 76.729167,27.78125"
id="path837-4"
sodipodi:nodetypes="ccc" />
<path
style="fill:none;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
id="path857-5"
sodipodi:type="arc"
sodipodi:cx="66.672424"
sodipodi:cy="41.538971"
sodipodi:rx="4.6302085"
sodipodi:ry="2.9244671"
sodipodi:start="0"
sodipodi:end="3.1415927"
sodipodi:open="true"
sodipodi:arc-type="chord"
transform="rotate(-9)"
d="m 71.302633,41.538971 a 4.6302085,2.9244671 0 0 1 -2.315104,2.532663 4.6302085,2.9244671 0 0 1 -4.630209,0 4.6302085,2.9244671 0 0 1 -2.315104,-2.532663 z" />
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.1 KiB

View file

@ -0,0 +1,36 @@
[
{
"path": "bent_pole_1.svg",
"license": "CC0",
"authors": [
"Robin van der Linde"
],
"sources": []
},
{
"path": "bent_pole_2.svg",
"license": "CC0",
"authors": [
"Robin van der Linde"
],
"sources": []
},
{
"path": "straight_pole.svg",
"license": "CC0",
"authors": [
"Robin van der Linde"
],
"sources": []
},
{
"path": "street_lamp.svg",
"license": "CC0",
"authors": [
"Yohan Boniface"
],
"sources": [
"https://github.com/hotosm/HDM-CartoCSS/blob/master/icons/poi/street_lamp.svg"
]
}
]

View file

@ -0,0 +1,160 @@
<?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"
width="100mm"
height="100mm"
viewBox="0 0 99.999987 99.999992"
version="1.1"
id="svg8"
sodipodi:docname="straight_pole.svg"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.4340417"
inkscape:cx="-22.578158"
inkscape:cy="290.51848"
inkscape:document-units="mm"
inkscape:current-layer="g888"
inkscape:document-rotation="0"
showgrid="true"
units="mm"
inkscape:window-width="2160"
inkscape:window-height="1346"
inkscape:window-x="-11"
inkscape:window-y="-11"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
id="grid835" />
</sodipodi:namedview>
<metadata
id="metadata5">
<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>
<g
inkscape:label="Laag 1"
inkscape:groupmode="layer"
id="layer1">
<g
id="g864"
transform="translate(-9.1324516,-2.7737965)">
<g
id="g869">
<g
id="g1550"
transform="matrix(1.75,0,0,1.75,-46.536839,-41.767847)">
<g
id="g1605"
transform="matrix(1.35,0,0,1.35,-21.342788,-16.055652)">
<g
id="g888"
transform="matrix(1.25,0,0,1.25,-15.134304,-18.038165)">
<g
id="g905">
<g
id="g871"
transform="translate(-0.08664166)">
<path
style="fill:none;stroke:#000000;stroke-width:1.14286;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 60.651853,71.512113 V 45.305764"
id="path1416"
sodipodi:nodetypes="cc" />
<rect
style="fill:#000000;stroke:#000000;stroke-width:1.14286;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
id="rect1421"
width="4.5357146"
height="2.2678573"
x="58.355999"
y="69.272255" />
</g>
<g
id="g1446" />
<g
id="g867"
transform="translate(-3.5449738e-7,8.1221356)">
<path
style="fill:#ffff00;stroke:#000000;stroke-width:1.14286;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
id="path1426"
sodipodi:type="arc"
sodipodi:cx="60.537212"
sodipodi:cy="34.523796"
sodipodi:rx="3.779762"
sodipodi:ry="2.2678573"
sodipodi:start="0"
sodipodi:end="3.1415927"
sodipodi:open="true"
sodipodi:arc-type="chord"
d="m 64.316974,34.523796 a 3.779762,2.2678573 0 0 1 -1.889881,1.964022 3.779762,2.2678573 0 0 1 -3.779762,0 3.779762,2.2678573 0 0 1 -1.889881,-1.964022 z" />
<rect
style="fill:none;stroke:#000000;stroke-width:1.14286;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
id="rect1428"
width="7.5595241"
height="0.75595242"
x="56.757454"
y="32.255939" />
<g
id="g1585">
<path
style="fill:none;stroke:#ffff00;stroke-width:0.571429;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 57.211024,37.547605 -1.511905,1.965477"
id="path1456"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#ffff00;stroke-width:0.571429;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 55.85031,36.489273 -2.419048,1.209523"
id="path1460"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#ffff00;stroke-width:0.571429;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 58.874119,38.303558 -0.604762,2.267857"
id="path1462"
sodipodi:nodetypes="cc" />
</g>
<g
id="g1590">
<path
style="fill:none;stroke:#ffff00;stroke-width:0.571429;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 63.863406,37.547605 1.511905,1.965477"
id="path1456-5"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#ffff00;stroke-width:0.571429;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 65.22412,36.489273 2.419048,1.209523"
id="path1460-2"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#ffff00;stroke-width:0.571429;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 62.200311,38.303558 0.604762,2.267857"
id="path1462-5"
sodipodi:nodetypes="cc" />
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.6 KiB

View file

@ -0,0 +1,4 @@
<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg">
<path d="m9 1c-1 0-2 1.5-3 4h-1v1h1l1 4 1 1v1h-2v1h2v4h2v-4h2v-1h-2v-1l1-1 1-4h1v-1h-1c-1-2.5-2-4-3-4zm-2 5h4l-1 4h-2z" fill="none" opacity=".3" stroke="#fff" stroke-linejoin="round" stroke-width="2" xmlns:ns0="http://www.w3.org/2000/svg"/>
<path d="m9 1c-1 0-2 1.5-3 4h-1v1h1l1 4 1 1v1h-2v1h2v4h2v-4h2v-1h-2v-1l1-1 1-4h1v-1h-1c-1-2.5-2-4-3-4zm-2 5h4l-1 4h-2z" fill="#747474" xmlns:ns0="http://www.w3.org/2000/svg"/>
</svg>

After

Width:  |  Height:  |  Size: 490 B

View file

@ -0,0 +1,371 @@
{
"id": "street_lamps",
"name": {
"en": "Street Lamps",
"nl": "Straatlantaarns"
},
"source": {
"osmTags": "highway=street_lamp"
},
"minZoom": 16,
"title": {
"render": {
"en": "Street Lamp",
"nl": "Straatlantaarn"
},
"mappings": [
{
"if": "ref~*",
"then": {
"en": "Street Lamp {ref}",
"nl": "Straatlantaarn {ref}"
}
}
]
},
"mapRendering": [
{
"location": "point",
"icon": "./assets/layers/street_lamps/street_lamp.svg",
"iconBadges": [
{
"if": "light:colour~*",
"then": "circle:{light:colour}"
}
],
"iconSize": "40,40,bottom"
}
],
"presets": [
{
"title": {
"en": "street lamp",
"nl": "straatlantaarn"
},
"tags": [
"highway=street_lamp"
],
"preciseInput": true
}
],
"tagRenderings": [
{
"id": "ref",
"render": {
"en": "This street lamp has the reference number {ref}",
"nl": "Deze straatlantaarn heeft het nummer {ref}"
},
"question": {
"en": "What is the reference number of this street lamp?",
"nl": "Wat is het nummer van deze straatlantaarn?"
},
"freeform": {
"key": "ref"
}
},
{
"id": "support",
"question": {
"en": "How is this street lamp mounted?",
"nl": "Hoe is deze straatlantaarn gemonteerd?"
},
"mappings": [
{
"if": "support=catenary",
"then": {
"en": "This lamp is suspended using cables",
"nl": "Deze lantaarn hangt aan kabels"
}
},
{
"if": "support=ceiling",
"then": {
"en": "This lamp is mounted on a ceiling",
"nl": "Deze lantaarn hangt aan een plafond"
}
},
{
"if": "support=ground",
"then": {
"en": "This lamp is mounted in the ground",
"nl": "Deze lantaarn zit in de grond"
}
},
{
"if": "support=pedestal",
"then": {
"en": "This lamp is mounted on a short pole (mostly < 1.5m)",
"nl": "Deze lantaarn zit op een korte paal (meestal < 1.5m)"
}
},
{
"if": "support=pole",
"then": {
"en": "This lamp is mounted on a pole",
"nl": "Deze lantaarn zit op een paal"
}
},
{
"if": "support=wall",
"then": {
"en": "This lamp is mounted directly to the wall",
"nl": "Deze lantaarn hangt direct aan de muur"
}
},
{
"if": "support=wall_mount",
"then": {
"en": "This lamp is mounted to the wall using a metal bar",
"nl": "Deze lantaarn hangt aan de muur met een metalen balk"
}
}
]
},
{
"id": "lamp_mount",
"question": {
"en": "How is this lamp mounted to the pole?",
"nl": "Hoe zit deze lantaarn aan de paal?"
},
"condition": "support=pole",
"mappings": [
{
"if": "lamp_mount=straight_mast",
"then": {
"en": "This lamp sits atop of a straight mast",
"nl": "Deze lantaarn zit boven op een rechte paal"
}
},
{
"if": "lamp_mount=bent_mast",
"then": {
"en": "This lamp sits at the end of a bent mast",
"nl": "Deze lantaarn zit aan het eind van een gebogen paal"
}
}
]
},
{
"id": "method",
"question": {
"en": "What kind of lighting does this lamp use?",
"nl": "Wat voor verlichting gebruikt deze lantaarn?"
},
"mappings": [
{
"if": "light:method=electric",
"then": {
"en": "This lamp is lit electrically",
"nl": "Deze lantaarn is elektrisch verlicht"
},
"hideInAnswer": true
},
{
"if": "light:method=LED",
"then": {
"en": "This lamp uses LEDs",
"nl": "Deze lantaarn gebruikt LEDs"
}
},
{
"if": "light:method=incandescent",
"then": {
"en": "This lamp uses incandescent lighting",
"nl": "Deze lantaarn gebruikt gloeilampen"
}
},
{
"if": "light:method=halogen",
"then": {
"en": "This lamp uses halogen lighting",
"nl": "Deze lantaarn gebruikt halogeen verlichting"
}
},
{
"if": "light:method=discharge",
"then": {
"en": "This lamp uses discharge lamps (unknown type)",
"nl": "Deze lantaarn gebruikt gasontladingslampen (onbekend type)"
}
},
{
"if": "light:method=mercury",
"then": {
"en": "This lamp uses a mercury-vapour lamp (lightly blueish)",
"nl": "Deze lantaarn gebruikt een kwiklamp (enigszins blauwachtig)"
}
},
{
"if": "light:method=metal-halide",
"then": {
"en": "This lamp uses metal-halide lamps (bright white)",
"nl": "Deze lantaarn gebruikt metaalhalidelampen"
}
},
{
"if": "light:method=fluorescent",
"then": {
"en": "This lamp uses fluorescent lighting",
"nl": "Deze lantaarn gebruikt fluorescentieverlichting (TL en spaarlamp)"
}
},
{
"if": "light:method=sodium",
"then": {
"en": "This lamp uses sodium lamps (unknown type)",
"nl": "Deze lantaarn gebruikt natriumlampen (onbekend type)"
}
},
{
"if": "light:method=low_pressure_sodium",
"then": {
"en": "This lamp uses low pressure sodium lamps (monochrome orange)",
"nl": "Deze lantaarn gebruikt lagedruknatriumlampen (monochroom oranje)"
}
},
{
"if": "light:method=high_pressure_sodium",
"then": {
"en": "This lamp uses high pressure sodium lamps (orange with white)",
"nl": "Deze lantaarn gebruikt hogedruknatriumlampen (oranje met wit)"
}
},
{
"if": "light:method=gas",
"then": {
"en": "This lamp is lit using gas",
"nl": "Deze lantaarn wordt verlicht met gas"
}
}
]
},
{
"id": "colour",
"question": {
"en": "What colour light does this lamp emit?",
"nl": "Wat voor kleur licht geeft deze lantaarn?"
},
"render": {
"en": "This lamp emits {light:colour} light",
"nl": "Deze lantaarn geeft {light:colour} licht"
},
"freeform": {
"key": "light:colour",
"type": "color"
},
"mappings": [
{
"if": "light:colour=white",
"then": {
"en": "This lamp emits white light",
"nl": "Deze lantaarn geeft wit licht"
}
},
{
"if": "light:colour=green",
"then": {
"en": "This lamp emits green light",
"nl": "Deze lantaarn geeft groen licht"
}
},
{
"if": "light:colour=orange",
"then": {
"en": "This lamp emits orange light",
"nl": "Deze lantaarn geeft oranje licht"
}
}
]
},
{
"id": "count",
"render": {
"en": "This lamp has {light:count} fixtures",
"nl": "Deze lantaarn heeft {light:count} lampen"
},
"question": {
"en": "How many fixtures does this light have?",
"nl": "Hoeveel lampen heeft deze lantaarn?"
},
"condition": "support=pole",
"freeform": {
"key": "light:count",
"type": "pnat"
},
"mappings": [
{
"if": "light:count=1",
"then": {
"en": "This lamp has 1 fixture",
"nl": "Deze lantaarn heeft 1 lamp"
}
},
{
"if": "light:count=2",
"then": {
"en": "This lamp has 2 fixtures",
"nl": "Deze lantaarn heeft 2 lampen"
}
}
]
},
{
"id": "lit",
"question": {
"en": "When is this lamp lit?",
"nl": "Wanneer is deze lantaarn verlicht?"
},
"mappings": [
{
"if": "light:lit=dusk-dawn",
"then": {
"en": "This lamp is lit at night",
"nl": "Deze lantaarn is 's nachts verlicht"
}
},
{
"if": "light:lit=24/7",
"then": {
"en": "This lamp is lit 24/7",
"nl": "Deze lantaarn is 24/7 verlicht"
}
},
{
"if": "light:lit=motion",
"then": {
"en": "This lamp is lit based on motion",
"nl": "Deze lantaarn is verlicht op basis van beweging"
}
},
{
"if": "light:lit=demand",
"then": {
"en": "This lamp is lit based on demand (e.g. with a pushbutton)",
"nl": "Deze lantaarn is verlicht op verzoek (bijv. met een drukknop)"
}
}
]
},
{
"id": "direction",
"render": {
"en": "This lamp points towards {light:direction}",
"nl": "Deze lantaarn is gericht naar {light:direction}"
},
"question": {
"en": "Where does this lamp point to?",
"nl": "Waar is deze lamp heengericht?"
},
"condition": "light:count=1",
"freeform": {
"key": "light:direction",
"type": "direction"
}
}
],
"deletion": true,
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": false
}
}

View file

@ -0,0 +1,168 @@
{
"id": "street_lighting",
"maintainer": "Robin van der Linde",
"version": "2021-10-22",
"language": [
"en",
"nl"
],
"title": {
"en": "Street Lighting",
"nl": "Straatverlichting"
},
"description": {
"en": "On this map you can find everything about street lighting",
"nl": "Op deze kaart vind je alles over straatlantaarns"
},
"icon": "./assets/layers/street_lamps/street_lamp.svg",
"startZoom": 19,
"startLat": 52.99319,
"startLon": 6.56113,
"layers": [
"street_lamps",
{
"id": "lit_streets",
"name": {
"en": "Lit streets",
"nl": "Verlichte straten"
},
"source": {
"osmTags": {
"and": [
"highway!=",
"lit!=no",
"lit!="
]
}
},
"minZoom": 16,
"title": {
"render": {
"en": "Lit street",
"nl": "Verlichte straat"
},
"mappings": [
{
"if": "name~*",
"then": "{name}"
}
]
},
"mapRendering": [
{
"color": "#ff0"
}
],
"tagRenderings": [
{
"id": "lit",
"question": {
"en": "Is this street lit?",
"nl": "Is deze straat verlicht?"
},
"mappings": [
{
"if": "lit=yes",
"then": {
"en": "This street is lit",
"nl": "Deze straat is verlicht"
}
},
{
"if": "lit=no",
"then": {
"en": "This street is not lit",
"nl": "Deze straat is niet verlicht"
}
},
{
"if": "lit=sunset-sunrise",
"then": {
"en": "This street is lit at night",
"nl": "Deze straat is 's nachts verlicht"
},
"hideInAnswer": true
},
{
"if": "lit=24/7",
"then": {
"en": "This street is lit 24/7",
"nl": "Deze straat is 24/7 verlicht"
}
}
]
}
],
"allowSplit": true
},
{
"id": "all_streets",
"name": {
"en": "All streets",
"nl": "Alle straten"
},
"source": {
"osmTags": "highway!="
},
"minZoom": 19,
"title": {
"render": {
"en": "Street",
"nl": "Straat"
},
"mappings": [
{
"if": "name~*",
"then": "{name}"
}
]
},
"mapRendering": [
{
"color": "#a9a9a9"
}
],
"tagRenderings": [
{
"id": "lit",
"question": {
"en": "Is this street lit?",
"nl": "Is deze straat verlicht?"
},
"mappings": [
{
"if": "lit=yes",
"then": {
"en": "This street is lit",
"nl": "Deze straat is verlicht"
}
},
{
"if": "lit=no",
"then": {
"en": "This street is not lit",
"nl": "Deze straat is niet verlicht"
}
},
{
"if": "lit=sunset-sunrise",
"then": {
"en": "This street is lit at night",
"nl": "Deze straat is 's nachts verlicht"
},
"hideInAnswer": true
},
{
"if": "lit=24/7",
"then": {
"en": "This street is lit 24/7",
"nl": "Deze straat is 24/7 verlicht"
}
}
]
}
],
"allowSplit": true
}
]
}

View file

@ -0,0 +1,58 @@
{
"id": "street_lighting_assen",
"maintainer": "Robin van der Linde",
"version": "2021-10-22",
"language": [
"nl",
"en"
],
"title": {
"nl": "Straatverlichting - Assen"
},
"description": {
"nl": "Op deze kaart vind je alles over straatlantaarns + een dataset van Assen"
},
"icon": "./assets/layers/street_lamps/street_lamp.svg",
"startZoom": 19,
"startLat": 52.99319,
"startLon": 6.56113,
"layers": [
"street_lamps",
{
"id": "Assen",
"name": "Dataset Assen",
"source": {
"osmTags": "Lichtmastnummer~*",
"#geoJson": "https://opendata.arcgis.com/datasets/ba37cdb372064b3199c548b75d16a609_0.geojson",
"geoJson": "https://robinlinde.github.io/tiles/assen_street_lighting/{z}/{x}/{y}.json",
"geoJsonZoomLevel": 16,
"isOsmCache": false
},
"calculatedTags": [
"_closest_osm_street_lamp=feat.closest('street_lamps')?.properties?.id",
"_closest_osm_street_lamp_distance=feat.distanceTo(feat.properties._closest_osm_street_lamp) * 1000",
"_has_closeby_feature=Number(feat.properties._closest_osm_street_lamp_distance) < 5 ? 'yes' : 'no'"
],
"title": "Straatlantaarn in dataset",
"mapRendering": [
{
"location": "point",
"icon": {
"render": "circle:red",
"mappings": [
{
"if": "_has_closeby_feature=yes",
"then": "circle:#008000aa"
}
]
},
"iconSize": "20,20,center"
}
],
"tagRenderings": [
"all_tags"
]
}
],
"hideFromOverview": true
}