forked from MapComplete/MapComplete
		
	Linting themes
This commit is contained in:
		
							parent
							
								
									e334f806bc
								
							
						
					
					
						commit
						02a1d9696f
					
				
					 12 changed files with 311 additions and 123 deletions
				
			
		|  | @ -972,64 +972,8 @@ | |||
|     "mapRendering": [ | ||||
|         { | ||||
|             "location": [ | ||||
|                 "point", | ||||
|                 "centroid" | ||||
|             ], | ||||
|             "icon": { | ||||
|                 "render": "pin:#fff;./assets/themes/charging_stations/plug.svg", | ||||
|                 "mappings": [ | ||||
|                     { | ||||
|                         "if": "bicycle=yes", | ||||
|                         "then": "pin:#fff;./assets/themes/charging_stations/bicycle.svg" | ||||
|                     }, | ||||
|                     { | ||||
|                         "if": { | ||||
|                             "or": [ | ||||
|                                 "car=yes", | ||||
|                                 "motorcar=yes" | ||||
|                             ] | ||||
|                         }, | ||||
|                         "then": "pin:#fff;./assets/themes/charging_stations/car.svg" | ||||
|                     } | ||||
|                 ] | ||||
|             }, | ||||
|             "iconBadges": [ | ||||
|                 { | ||||
|                     "if": { | ||||
|                         "or": [ | ||||
|                             "disused:amenity=charging_station", | ||||
|                             "operational_status=broken" | ||||
|                         ] | ||||
|                     }, | ||||
|                     "then": "cross:#c22;" | ||||
|                 }, | ||||
|                 { | ||||
|                     "if": { | ||||
|                         "or": [ | ||||
|                             "proposed:amenity=charging_station", | ||||
|                             "planned:amenity=charging_station" | ||||
|                         ] | ||||
|                     }, | ||||
|                     "then": "./assets/layers/charging_station/under_construction.svg" | ||||
|                 }, | ||||
|                 { | ||||
|                     "if": { | ||||
|                         "and": [ | ||||
|                             "bicycle=yes", | ||||
|                             { | ||||
|                                 "or": [ | ||||
|                                     "motorcar=yes", | ||||
|                                     "car=yes" | ||||
|                                 ] | ||||
|                             } | ||||
|                         ] | ||||
|                     }, | ||||
|                     "then": "circle:#fff;./assets/themes/charging_stations/car.svg" | ||||
|                 } | ||||
|             ], | ||||
|             "iconSize": { | ||||
|                 "render": "50,50,bottom" | ||||
|             } | ||||
|                 "point" | ||||
|             ] | ||||
|         } | ||||
|     ] | ||||
| } | ||||
|  | @ -33,8 +33,7 @@ | |||
|                     "operational_status=closed" | ||||
|                 ] | ||||
|             }, | ||||
|             "then": "close:#c33", | ||||
|             "badge": true | ||||
|             "then": "close:#c33" | ||||
|         } | ||||
|     ], | ||||
|     "iconSize": "40,40,bottom", | ||||
|  |  | |||
|  | @ -35,8 +35,7 @@ | |||
|     "iconOverlays": [ | ||||
|         { | ||||
|             "if": "opening_hours~*", | ||||
|             "then": "isOpen", | ||||
|             "badge": true | ||||
|             "then": "isOpen" | ||||
|         }, | ||||
|         { | ||||
|             "if": { | ||||
|  | @ -47,8 +46,7 @@ | |||
|             }, | ||||
|             "then": { | ||||
|                 "render": "circle:white;./assets/themes/fritures/Vegetarian-mark.svg" | ||||
|             }, | ||||
|             "badge": true | ||||
|             } | ||||
|         } | ||||
|     ], | ||||
|     "label": { | ||||
|  |  | |||
|  | @ -482,8 +482,7 @@ | |||
|                     "opening_hours~*" | ||||
|                 ] | ||||
|             }, | ||||
|             "then": "isOpen", | ||||
|             "badge": true | ||||
|             "then": "isOpen" | ||||
|         } | ||||
|     ], | ||||
|     "width": { | ||||
|  |  | |||
|  | @ -280,8 +280,7 @@ | |||
|     "iconOverlays": [ | ||||
|         { | ||||
|             "if": "opening_hours~*", | ||||
|             "then": "isOpen", | ||||
|             "badge": true | ||||
|             "then": "isOpen" | ||||
|         } | ||||
|     ], | ||||
|     "width": { | ||||
|  |  | |||
|  | @ -423,8 +423,7 @@ | |||
|                     "opening_hours~*" | ||||
|                 ] | ||||
|             }, | ||||
|             "then": "isOpen", | ||||
|             "badge": true | ||||
|             "then": "isOpen" | ||||
|         }, | ||||
|         { | ||||
|             "if": { | ||||
|  | @ -434,8 +433,7 @@ | |||
|                     "access=no" | ||||
|                 ] | ||||
|             }, | ||||
|             "then": "circle:white;./assets/layers/sport_pitch/lock.svg", | ||||
|             "badge": true | ||||
|             "then": "circle:white;./assets/layers/sport_pitch/lock.svg" | ||||
|         } | ||||
|     ], | ||||
|     "width": { | ||||
|  |  | |||
|  | @ -676,7 +676,39 @@ | |||
|           } | ||||
|         } | ||||
|       ], | ||||
|       "wayHandling": 2 | ||||
|       "wayHandling": 2, | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "icon": { | ||||
|             "render": "circle:white;./assets/themes/campersite/caravan.svg", | ||||
|             "mappings": [ | ||||
|               { | ||||
|                 "if": { | ||||
|                   "and": [ | ||||
|                     "fee=no" | ||||
|                   ] | ||||
|                 }, | ||||
|                 "then": "circle:white;./assets/themes/campersite/caravan_green.svg" | ||||
|               } | ||||
|             ] | ||||
|           }, | ||||
|           "iconSize": { | ||||
|             "render": "40,40,center" | ||||
|           }, | ||||
|           "location": [ | ||||
|             "point", | ||||
|             "centroid" | ||||
|           ] | ||||
|         }, | ||||
|         { | ||||
|           "color": { | ||||
|             "render": "#00f" | ||||
|           }, | ||||
|           "width": { | ||||
|             "render": "8" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "id": "dumpstations", | ||||
|  | @ -1075,6 +1107,27 @@ | |||
|             "de": "Fügen Sie eine neue sanitäre Entsorgungsstation hinzu. Hier können Camper Abwasser oder chemischen Toilettenabfälle entsorgen. Oft gibt es auch Trinkwasser und Strom." | ||||
|           } | ||||
|         } | ||||
|       ], | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "icon": { | ||||
|             "render": "circle:white;./assets/themes/campersite/sanitary_dump_station.svg" | ||||
|           }, | ||||
|           "iconSize": { | ||||
|             "render": "32,32,center" | ||||
|           }, | ||||
|           "location": [ | ||||
|             "point" | ||||
|           ] | ||||
|         }, | ||||
|         { | ||||
|           "color": { | ||||
|             "render": "#00f" | ||||
|           }, | ||||
|           "width": { | ||||
|             "render": "8" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   ], | ||||
|  |  | |||
|  | @ -318,7 +318,29 @@ | |||
|           } | ||||
|         } | ||||
|       ], | ||||
|       "wayHandling": 2 | ||||
|       "wayHandling": 2, | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "icon": { | ||||
|             "render": "./assets/themes/hailhydrant/hydrant.svg" | ||||
|           }, | ||||
|           "iconSize": { | ||||
|             "render": "20,20,center" | ||||
|           }, | ||||
|           "location": [ | ||||
|             "point", | ||||
|             "centroid" | ||||
|           ] | ||||
|         }, | ||||
|         { | ||||
|           "color": { | ||||
|             "render": "#00f" | ||||
|           }, | ||||
|           "width": { | ||||
|             "render": "8" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "id": "extinguisher", | ||||
|  | @ -435,7 +457,20 @@ | |||
|           } | ||||
|         } | ||||
|       ], | ||||
|       "wayHandling": 1 | ||||
|       "wayHandling": 1, | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "icon": { | ||||
|             "render": "./assets/themes/hailhydrant/Twemoji12_1f9ef.svg" | ||||
|           }, | ||||
|           "iconSize": { | ||||
|             "render": "20,20,center" | ||||
|           }, | ||||
|           "location": [ | ||||
|             "point" | ||||
|           ] | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "id": "fire_stations", | ||||
|  | @ -659,6 +694,28 @@ | |||
|             "fr": "Une caserne de pompiers est un lieu où les pompiers et leur équipements sont situés en dehors des missions." | ||||
|           } | ||||
|         } | ||||
|       ], | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "icon": { | ||||
|             "render": "./assets/themes/hailhydrant/Twemoji12_1f692.svg" | ||||
|           }, | ||||
|           "iconSize": { | ||||
|             "render": "35,35,center" | ||||
|           }, | ||||
|           "location": [ | ||||
|             "point", | ||||
|             "centroid" | ||||
|           ] | ||||
|         }, | ||||
|         { | ||||
|           "color": { | ||||
|             "render": "#c22" | ||||
|           }, | ||||
|           "width": { | ||||
|             "render": "1" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|  | @ -860,7 +917,29 @@ | |||
|           } | ||||
|         } | ||||
|       ], | ||||
|       "wayHandling": 2 | ||||
|       "wayHandling": 2, | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "icon": { | ||||
|             "render": "./assets/themes/hailhydrant/Twemoji_1f691.svg" | ||||
|           }, | ||||
|           "iconSize": { | ||||
|             "render": "35,35,center" | ||||
|           }, | ||||
|           "location": [ | ||||
|             "point", | ||||
|             "centroid" | ||||
|           ] | ||||
|         }, | ||||
|         { | ||||
|           "color": { | ||||
|             "render": "#00f" | ||||
|           }, | ||||
|           "width": { | ||||
|             "render": "1" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   ], | ||||
|   "defaultBackgroundId": "HDM_HOT" | ||||
|  |  | |||
|  | @ -229,6 +229,23 @@ | |||
|             } | ||||
|           ] | ||||
|         } | ||||
|       ], | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "icon": "./assets/themes/openwindpowermap/wind_turbine.svg", | ||||
|           "label": { | ||||
|             "mappings": [ | ||||
|               { | ||||
|                 "if": "generator:output:electricity~^[0-9]+.*[W]$", | ||||
|                 "then": "<div style='background-color: rgba(0,0,0,0.3); color: white; font-size: 8px; padding: 0.25em; border-radius:0.5em'>{generator:output:electricity}</div>" | ||||
|               } | ||||
|             ] | ||||
|           }, | ||||
|           "iconSize": "40, 40, bottom", | ||||
|           "location": [ | ||||
|             "point" | ||||
|           ] | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   ], | ||||
|  |  | |||
|  | @ -80,7 +80,29 @@ | |||
|             "razed:amenity=post_box" | ||||
|           ] | ||||
|         } | ||||
|       } | ||||
|       }, | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "icon": { | ||||
|             "render": "./assets/themes/postboxes/postbox.svg" | ||||
|           }, | ||||
|           "iconSize": { | ||||
|             "render": "40,40,bottom" | ||||
|           }, | ||||
|           "location": [ | ||||
|             "point", | ||||
|             "centroid" | ||||
|           ] | ||||
|         }, | ||||
|         { | ||||
|           "color": { | ||||
|             "render": "#DADADA" | ||||
|           }, | ||||
|           "width": { | ||||
|             "render": "1" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "id": "postoffices", | ||||
|  | @ -133,8 +155,7 @@ | |||
|       "iconOverlays": [ | ||||
|         { | ||||
|           "if": "opening_hours~*", | ||||
|           "then": "isOpen", | ||||
|           "badge": true | ||||
|           "then": "isOpen" | ||||
|         } | ||||
|       ], | ||||
|       "width": { | ||||
|  | @ -169,6 +190,34 @@ | |||
|             } | ||||
|           ] | ||||
|         } | ||||
|       ], | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "icon": { | ||||
|             "render": "square:white;./assets/themes/postboxes/post_office.svg" | ||||
|           }, | ||||
|           "iconBadges": [ | ||||
|             { | ||||
|               "if": "opening_hours~*", | ||||
|               "then": "isOpen" | ||||
|             } | ||||
|           ], | ||||
|           "iconSize": { | ||||
|             "render": "40,40,bottom" | ||||
|           }, | ||||
|           "location": [ | ||||
|             "point", | ||||
|             "centroid" | ||||
|           ] | ||||
|         }, | ||||
|         { | ||||
|           "color": { | ||||
|             "render": "#DADADA" | ||||
|           }, | ||||
|           "width": { | ||||
|             "render": "1" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   ] | ||||
|  |  | |||
|  | @ -41,49 +41,11 @@ | |||
|       "tagRenderings": [], | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "color": "#ffffff55", | ||||
|           "width": 8 | ||||
|           "location": [ | ||||
|             "point" | ||||
|           ] | ||||
|         }, | ||||
|         { | ||||
|           "color": { | ||||
|             "render": "#888" | ||||
|           }, | ||||
|           "width": { | ||||
|             "render": 6, | ||||
|             "mappings": [ | ||||
|               { | ||||
|                 "if": { | ||||
|                   "or": [ | ||||
|                     "sidewalk:left=", | ||||
|                     "sidewalk:left=no", | ||||
|                     "sidewalk:left=separate" | ||||
|                   ] | ||||
|                 }, | ||||
|                 "then": 0 | ||||
|               } | ||||
|             ] | ||||
|           }, | ||||
|           "offset": -6 | ||||
|         }, | ||||
|         { | ||||
|           "color": "#888", | ||||
|           "width": { | ||||
|             "render": 6, | ||||
|             "mappings": [ | ||||
|               { | ||||
|                 "if": { | ||||
|                   "or": [ | ||||
|                     "sidewalk:right=", | ||||
|                     "sidewalk:right=no", | ||||
|                     "sidewalk:right=separate" | ||||
|                   ] | ||||
|                 }, | ||||
|                 "then": 0 | ||||
|               } | ||||
|             ] | ||||
|           }, | ||||
|           "offset": 6 | ||||
|         } | ||||
|         {} | ||||
|       ], | ||||
|       "allowSplit": true | ||||
|     } | ||||
|  |  | |||
|  | @ -112,6 +112,29 @@ | |||
|             } | ||||
|           ] | ||||
|         } | ||||
|       ], | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "icon": { | ||||
|             "render": "./assets/themes/uk_addresses/housenumber_unknown.svg", | ||||
|             "mappings": [ | ||||
|               { | ||||
|                 "if": "_embedding_object:id~*", | ||||
|                 "then": "./assets/themes/uk_addresses/housenumber_unknown_small.svg" | ||||
|               }, | ||||
|               { | ||||
|                 "if": "_imported=yes", | ||||
|                 "then": "./assets/themes/uk_addresses/housenumber_unknown_small.svg" | ||||
|               } | ||||
|             ] | ||||
|           }, | ||||
|           "iconSize": { | ||||
|             "render": "40,40,center" | ||||
|           }, | ||||
|           "location": [ | ||||
|             "point" | ||||
|           ] | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|  | @ -258,7 +281,60 @@ | |||
|             "then": "#ff0" | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
|       }, | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "icon": { | ||||
|             "render": "./assets/themes/uk_addresses/housenumber_ok.svg", | ||||
|             "mappings": [ | ||||
|               { | ||||
|                 "if": { | ||||
|                   "or": [ | ||||
|                     { | ||||
|                       "and": [ | ||||
|                         "addr:housenumber=", | ||||
|                         "nohousenumber!=yes" | ||||
|                       ] | ||||
|                     }, | ||||
|                     "addr:street=" | ||||
|                   ] | ||||
|                 }, | ||||
|                 "then": "./assets/themes/uk_addresses/housenumber_unknown.svg" | ||||
|               } | ||||
|             ] | ||||
|           }, | ||||
|           "iconSize": { | ||||
|             "render": "40,40,center" | ||||
|           }, | ||||
|           "location": [ | ||||
|             "point" | ||||
|           ] | ||||
|         }, | ||||
|         { | ||||
|           "color": { | ||||
|             "render": "#00f", | ||||
|             "mappings": [ | ||||
|               { | ||||
|                 "if": { | ||||
|                   "or": [ | ||||
|                     { | ||||
|                       "and": [ | ||||
|                         "addr:housenumber=", | ||||
|                         "nohousenumber!=yes" | ||||
|                       ] | ||||
|                     }, | ||||
|                     "addr:street=" | ||||
|                   ] | ||||
|                 }, | ||||
|                 "then": "#ff0" | ||||
|               } | ||||
|             ] | ||||
|           }, | ||||
|           "width": { | ||||
|             "render": "8" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "id": "named_streets", | ||||
|  | @ -276,7 +352,22 @@ | |||
|       }, | ||||
|       "width": { | ||||
|         "render": "0" | ||||
|       } | ||||
|       }, | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "location": [ | ||||
|             "point" | ||||
|           ] | ||||
|         }, | ||||
|         { | ||||
|           "color": { | ||||
|             "render": "#ccc" | ||||
|           }, | ||||
|           "width": { | ||||
|             "render": "0" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   ] | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue