forked from MapComplete/MapComplete
		
	Basic clocks theme
This commit is contained in:
		
							parent
							
								
									88a99ead87
								
							
						
					
					
						commit
						c7517df948
					
				
					 4 changed files with 513 additions and 0 deletions
				
			
		
							
								
								
									
										344
									
								
								assets/layers/clock/clock.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										344
									
								
								assets/layers/clock/clock.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,344 @@ | |||
| { | ||||
|   "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" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "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" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "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" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "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" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "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": "./assets/layers/clock/clock.svg" | ||||
|     } | ||||
|   ] | ||||
| } | ||||
							
								
								
									
										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 | 
							
								
								
									
										12
									
								
								assets/layers/clock/license_info.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								assets/layers/clock/license_info.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| [ | ||||
|   { | ||||
|     "path": "clock.svg", | ||||
|     "license": "CC0", | ||||
|     "authors": [ | ||||
|       "SJJB Management" | ||||
|     ], | ||||
|     "sources": [ | ||||
|       "https://wiki.openstreetmap.org/wiki/File:Amenity_clock_20x20.svg" | ||||
|     ] | ||||
|   } | ||||
| ] | ||||
							
								
								
									
										19
									
								
								assets/themes/clock/clock.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								assets/themes/clock/clock.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| { | ||||
|   "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, | ||||
|   "hideFromOverview": true, | ||||
|   "layers": [ | ||||
|     "clock" | ||||
|   ] | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue