forked from MapComplete/MapComplete
commit
531d394949
5 changed files with 546 additions and 0 deletions
365
assets/layers/clock/clock.json
Normal file
365
assets/layers/clock/clock.json
Normal file
|
@ -0,0 +1,365 @@
|
|||
{
|
||||
"id": "clock",
|
||||
"name": {
|
||||
"en": "Clocks",
|
||||
"nl": "Klokken"
|
||||
},
|
||||
"description": {
|
||||
"en": "Layer with public clocks",
|
||||
"nl": "Laag met publieke klokken"
|
||||
},
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Clock",
|
||||
"nl": "Klok"
|
||||
}
|
||||
},
|
||||
"source": {
|
||||
"osmTags": "amenity=clock"
|
||||
},
|
||||
"minzoom": 13,
|
||||
"tagRenderings": [
|
||||
"images",
|
||||
{
|
||||
"id": "support",
|
||||
"question": {
|
||||
"en": "In what way is the clock mounted?",
|
||||
"nl": "Hoe is de klok bevestigd?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "support=pole",
|
||||
"then": {
|
||||
"en": "This clock is mounted on a pole",
|
||||
"nl": "Deze klok is bevestigd aan een paal"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "support=wall_mounted",
|
||||
"then": {
|
||||
"en": "This clock is mounted on a wall",
|
||||
"nl": "Deze klok is bevestigd aan een muur"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "support=billboard",
|
||||
"then": {
|
||||
"en": "This clock is part of a billboard",
|
||||
"nl": "Deze klok is onderdeel van een reclamebord"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "support=ground",
|
||||
"then": {
|
||||
"en": "This clock is on the ground",
|
||||
"nl": "Deze klok staat op de grond"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "display",
|
||||
"question": {
|
||||
"en": "How does this clock display the time?",
|
||||
"nl": "Hoe toont deze klok de tijd?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "display=analog",
|
||||
"then": {
|
||||
"en": "This clock displays the time with hands",
|
||||
"nl": "Deze klok toont de tijd met wijzers"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "display=digital",
|
||||
"then": {
|
||||
"en": "This clock displays the time with digits",
|
||||
"nl": "Deze klok toont de tijd met cijfers"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "display=sundial",
|
||||
"then": {
|
||||
"en": "This clock displays the time with a sundial",
|
||||
"nl": "Deze klok toont de tijd met een zonnewijzer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "display=unorthodox",
|
||||
"then": {
|
||||
"en": "This clock displays the time in a non-standard way, e.g using binary, water or something else",
|
||||
"nl": "Deze klok toont de tijd op een niet-standaard manier, bijvoorbeeld met binaire cijfers, water of iets anders"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "visibility",
|
||||
"question": {
|
||||
"en": "How visible is this clock?",
|
||||
"nl": "Hoe zichtbaar is deze klok?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "visibility=house",
|
||||
"then": {
|
||||
"en": "This clock is visible from about 5 meters away (small wall-mounted clock)",
|
||||
"nl": "Deze klok is zichtbaar vanaf ongeveer 5 meter afstand (kleine klok aan een muur)"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "visibility=street",
|
||||
"then": {
|
||||
"en": "This clock is visible from about 20 meters away (medium size billboard clock)",
|
||||
"nl": "Deze klok is zichtbaar vanaf ongeveer 20 meter afstand (klok op gemiddeld reclamebord)"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "visibility=area",
|
||||
"then": {
|
||||
"en": "This clock is visible from more than 20 meters away (church clock)",
|
||||
"nl": "Deze klok is zichtbaar vanaf meer dan 20 meter afstand (kerkklok)"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "date",
|
||||
"question": {
|
||||
"en": "Does this clock also display the date?",
|
||||
"nl": "Toont deze klok ook de datum?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "date=yes",
|
||||
"then": {
|
||||
"en": "This clock also displays the date",
|
||||
"nl": "Deze klok toont ook de datum"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "date=no",
|
||||
"then": {
|
||||
"en": "This clock does not display the date",
|
||||
"nl": "Deze klok toont de datum niet"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "date=",
|
||||
"then": {
|
||||
"en": "This clock does probably not display the date",
|
||||
"nl": "Deze klok toont de datum waarschijnlijk niet"
|
||||
},
|
||||
"hideInAnswer": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "thermometer",
|
||||
"question": {
|
||||
"en": "Does this clock also display the temperature?",
|
||||
"nl": "Toont deze klok ook de temperatuur?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "thermometer=yes",
|
||||
"then": {
|
||||
"en": "This clock also displays the temperature",
|
||||
"nl": "Deze klok toont ook de temperatuur"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "thermometer=no",
|
||||
"then": {
|
||||
"en": "This clock does not display the temperature",
|
||||
"nl": "Deze klok toont de temperatuur niet"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "thermometer=",
|
||||
"then": {
|
||||
"en": "This clock does probably not display the temperature",
|
||||
"nl": "Deze klok toont de temperatuur waarschijnlijk niet"
|
||||
},
|
||||
"hideInAnswer": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "barometer",
|
||||
"question": {
|
||||
"en": "Does this clock also display the air pressure?",
|
||||
"nl": "Toont deze klok ook de luchtdruk?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "barometer=yes",
|
||||
"then": {
|
||||
"en": "This clock also displays the air pressure",
|
||||
"nl": "Deze klok toont ook de luchtdruk"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "barometer=no",
|
||||
"then": {
|
||||
"en": "This clock does not display the air pressure",
|
||||
"nl": "Deze klok toont de luchtdruk niet"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "barometer=",
|
||||
"then": {
|
||||
"en": "This clock does probably not display the air pressure",
|
||||
"nl": "Deze klok toont de luchtdruk waarschijnlijk niet"
|
||||
},
|
||||
"hideInAnswer": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "hygrometer",
|
||||
"question": {
|
||||
"en": "Does this clock also display the humidity?",
|
||||
"nl": "Toont deze klok ook de luchtvochtigheid?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "hygrometer=yes",
|
||||
"then": {
|
||||
"en": "This clock also displays the humidity",
|
||||
"nl": "Deze klok toont ook de luchtvochtigheid"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "hygrometer=no",
|
||||
"then": {
|
||||
"en": "This clock does not display the humidity",
|
||||
"nl": "Deze klok toont de luchtvochtigheid niet"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "hygrometer=",
|
||||
"then": {
|
||||
"en": "This clock does probably not display the humidity",
|
||||
"nl": "Deze klok toont de luchtvochtigheid waarschijnlijk niet"
|
||||
},
|
||||
"hideInAnswer": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "faces",
|
||||
"question": {
|
||||
"en": "How many faces does this clock have?",
|
||||
"nl": "Hoeveel klokken heeft deze klok?"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "faces",
|
||||
"type": "pnat",
|
||||
"inline": true,
|
||||
"placeholder": {
|
||||
"en": "Number of faces",
|
||||
"nl": "Aantal klokken"
|
||||
}
|
||||
},
|
||||
"render": {
|
||||
"en": "This clock has {faces} faces",
|
||||
"nl": "Deze klok heeft {faces} klokken"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "faces=1",
|
||||
"then": {
|
||||
"en": "This clock has one face",
|
||||
"nl": "Deze klok heeft één klok"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "faces=2",
|
||||
"then": {
|
||||
"en": "This clock has two faces",
|
||||
"nl": "Deze klok heeft twee klokken"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "faces=4",
|
||||
"then": {
|
||||
"en": "This clock has four faces",
|
||||
"nl": "Deze klok heeft vier klokken"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"presets": [
|
||||
{
|
||||
"tags": [
|
||||
"amenity=clock"
|
||||
],
|
||||
"title": {
|
||||
"en": "a clock",
|
||||
"nl": "een klok"
|
||||
},
|
||||
"description": {
|
||||
"en": "A publicly visible clock",
|
||||
"nl": "Een publiekelijk zichtbare klok"
|
||||
},
|
||||
"preciseInput": {
|
||||
"preferredBackground": [
|
||||
"photo",
|
||||
"map"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"tags": [
|
||||
"amenity=clock",
|
||||
"support=wall_mounted"
|
||||
],
|
||||
"title": {
|
||||
"en": "a wall-mounted clock",
|
||||
"nl": "een klok aan een muur"
|
||||
},
|
||||
"description": {
|
||||
"en": "A publicly visible clock mounted on a wall",
|
||||
"nl": "Een publiekelijk zichtbare klok aan een muur"
|
||||
},
|
||||
"preciseInput": {
|
||||
"preferredBackground": [
|
||||
"photo",
|
||||
"map"
|
||||
],
|
||||
"snapToLayer": "walls_and_buildings"
|
||||
}
|
||||
}
|
||||
],
|
||||
"allowMove": true,
|
||||
"deletion": true,
|
||||
"mapRendering": [
|
||||
{
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"icon": {
|
||||
"render": "./assets/layers/clock/clock.svg",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "display=digital",
|
||||
"then": "./assets/layers/clock/clock_digital.svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"iconSize": {
|
||||
"render": "40,40,center",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "display=digital",
|
||||
"then": "50,20,center"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
138
assets/layers/clock/clock.svg
Normal file
138
assets/layers/clock/clock.svg
Normal file
|
@ -0,0 +1,138 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) -->
|
||||
|
||||
<svg
|
||||
version="1.1"
|
||||
id="Ebene_1"
|
||||
x="0px"
|
||||
y="0px"
|
||||
width="500"
|
||||
height="500"
|
||||
viewBox="0 0 500 500"
|
||||
enable-background="new 0 0 20 20"
|
||||
xml:space="preserve"
|
||||
sodipodi:docname="clock.svg"
|
||||
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
|
||||
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="defs14" /><sodipodi:namedview
|
||||
id="namedview12"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#505050"
|
||||
showgrid="false"
|
||||
inkscape:zoom="0.36875"
|
||||
inkscape:cx="364.74576"
|
||||
inkscape:cy="35.254237"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1011"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g9" />
|
||||
<g
|
||||
id="g9">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<g
|
||||
id="g922"
|
||||
transform="matrix(25.000002,0,0,25.000002,-2.0027162e-5,-2.0027162e-5)"><circle
|
||||
id="path2931-3"
|
||||
inkscape:export-filename="/home/markus/Downloads/1.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90"
|
||||
fill="#f2f2f2"
|
||||
stroke="#734a08"
|
||||
cx="10"
|
||||
cy="10"
|
||||
style="stroke-width:1.17647"
|
||||
r="9.4117641" /><rect
|
||||
id="rect2935"
|
||||
x="2.674"
|
||||
y="9.5"
|
||||
inkscape:export-filename="/home/markus/Downloads/1.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90"
|
||||
opacity="0.5"
|
||||
fill="#4d4d4d"
|
||||
enable-background="new "
|
||||
width="2.326"
|
||||
height="1.108">
|
||||
</rect><rect
|
||||
id="rect2935-7"
|
||||
x="15.176"
|
||||
y="9.5"
|
||||
inkscape:export-filename="/home/markus/Downloads/1.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90"
|
||||
opacity="0.5"
|
||||
fill="#4d4d4d"
|
||||
enable-background="new "
|
||||
width="2.3239999"
|
||||
height="1.108">
|
||||
</rect><rect
|
||||
id="rect2935-7-1"
|
||||
x="9.5"
|
||||
y="2.6760001"
|
||||
inkscape:export-filename="/home/markus/Downloads/1.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90"
|
||||
opacity="0.5"
|
||||
fill="#4d4d4d"
|
||||
enable-background="new "
|
||||
width="1.108"
|
||||
height="2.3239999">
|
||||
</rect><rect
|
||||
id="rect2935-7-1-2"
|
||||
x="9.5"
|
||||
y="15"
|
||||
inkscape:export-filename="/home/markus/Downloads/1.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90"
|
||||
opacity="0.5"
|
||||
fill="#4d4d4d"
|
||||
enable-background="new "
|
||||
width="1.108"
|
||||
height="2.326">
|
||||
</rect><rect
|
||||
id="rect2935-7-1-6"
|
||||
x="3.9330001"
|
||||
y="7.0009999"
|
||||
inkscape:export-filename="/home/markus/Downloads/1.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90"
|
||||
transform="matrix(-0.5,-0.866,0.866,-0.5,5.5694,18.4072)"
|
||||
fill="#734a08"
|
||||
width="8.3290005"
|
||||
height="1.1900001">
|
||||
</rect><rect
|
||||
id="rect2935-7-1-4"
|
||||
x="8.9049997"
|
||||
y="9.1400003"
|
||||
inkscape:export-filename="/home/markus/Downloads/1.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90"
|
||||
transform="matrix(0.9068,-0.4215,0.4215,0.9068,-2.9963,5.9137)"
|
||||
fill="#734a08"
|
||||
width="5.9489999"
|
||||
height="1.189">
|
||||
</rect></g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.4 KiB |
5
assets/layers/clock/clock_digital.svg
Normal file
5
assets/layers/clock/clock_digital.svg
Normal file
|
@ -0,0 +1,5 @@
|
|||
<svg width="900" height="358" viewBox="0 0 900 358" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="900" height="358" fill="#D9D9D9"/>
|
||||
<rect x="40" y="40" width="820" height="278" fill="black"/>
|
||||
<path d="M181.2 278.8L159.6 258.2V209L181.2 189.4V278.8ZM180.6 93V182.4L159 163V113.6L180.6 93ZM245.361 287.6L265.961 266H315.361L334.761 287.6H245.361ZM239.361 189.4L260.961 210.2V259.2L239.361 278.8V189.4ZM262.561 196.6C257.894 192.867 253.161 189.2 248.361 185.6L262.561 175H317.161L331.161 185.6L317.161 196.6H262.561ZM245.161 84.4H334.561L314.761 106H265.761L245.161 84.4ZM340.561 93V182.4L318.961 163V113.6L340.561 93ZM437.322 187.4H462.522V212.4H437.322V187.4ZM437.322 128H462.522V153.6H437.322V128ZM565.283 287.6L585.883 266H635.283L654.683 287.6H565.283ZM559.283 189.4L580.883 210.2V259.2L559.283 278.8V189.4ZM661.083 278.8L639.483 258.2V209L661.083 189.4V278.8ZM565.083 84.4H654.483L634.683 106H585.683L565.083 84.4ZM558.683 182.4V93L580.283 112.4V162L558.683 182.4ZM660.483 93V182.4L638.883 163V113.6L660.483 93ZM821.044 278.8L799.444 258.2V209L821.044 189.4V278.8ZM820.444 93V182.4L798.844 163V113.6L820.444 93Z" fill="#FF0000"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
20
assets/layers/clock/license_info.json
Normal file
20
assets/layers/clock/license_info.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
[
|
||||
{
|
||||
"path": "clock.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"SJJB Management"
|
||||
],
|
||||
"sources": [
|
||||
"https://wiki.openstreetmap.org/wiki/File:Amenity_clock_20x20.svg"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "clock_digital.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Robin van der Linde"
|
||||
],
|
||||
"sources": []
|
||||
}
|
||||
]
|
18
assets/themes/clock/clock.json
Normal file
18
assets/themes/clock/clock.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"id": "clock",
|
||||
"title": {
|
||||
"en": "Clocks",
|
||||
"nl": "Klokken"
|
||||
},
|
||||
"description": {
|
||||
"en": "Map showing all public clocks",
|
||||
"nl": "Kaart met alle openbare klokken"
|
||||
},
|
||||
"icon": "./assets/layers/clock/clock.svg",
|
||||
"startLat": 0,
|
||||
"startLon": 0,
|
||||
"startZoom": 0,
|
||||
"layers": [
|
||||
"clock"
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue