forked from MapComplete/MapComplete
		
	Changed around some icons, add filters
This commit is contained in:
		
							parent
							
								
									7ed5489b18
								
							
						
					
					
						commit
						b5c7076b36
					
				
					 5 changed files with 48 additions and 26 deletions
				
			
		|  | @ -74,7 +74,16 @@ | |||
|       ], | ||||
|       "icon": "circle:white;./assets/layers/fitness_centre/gym.svg", | ||||
|       "iconSize": "40,40,center", | ||||
|       "label": "{name}" | ||||
|       "label": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>", | ||||
|       "iconBadges": [ | ||||
|         { | ||||
|           "if": "opening_hours~*", | ||||
|           "then": "isOpen" | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   ], | ||||
|   "filter": [ | ||||
|     "open_now" | ||||
|   ] | ||||
| } | ||||
| } | ||||
|  |  | |||
|  | @ -323,25 +323,7 @@ | |||
|         "en": "The fitness station is maintained by {operator}." | ||||
|       } | ||||
|     }, | ||||
|     { | ||||
|       "id": "opening_hours", | ||||
|       "question": { | ||||
|         "en": "When is this fitness station opened?" | ||||
|       }, | ||||
|       "freeform": { | ||||
|         "key": "opening_hours", | ||||
|         "type": "opening_hours" | ||||
|       }, | ||||
|       "render": "{opening_hours_table()}", | ||||
|       "mappings": [ | ||||
|         { | ||||
|           "if": "opening_hours=24/7", | ||||
|           "then": { | ||||
|             "en": "24/7" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|     "opening_hours" | ||||
|   ], | ||||
|   "presets": [ | ||||
|     { | ||||
|  | @ -362,7 +344,21 @@ | |||
|         "centroid" | ||||
|       ], | ||||
|       "icon": "circle:white;./assets/layers/fitness_station/fitness.svg", | ||||
|       "iconSize": "40,40,center" | ||||
|       "iconSize": "40,40,center", | ||||
|       "iconBadges": [ | ||||
|         { | ||||
|           "if": { | ||||
|             "and": [ | ||||
|               "opening_hours!=24/7", | ||||
|               "opening_hours~*" | ||||
|             ] | ||||
|           }, | ||||
|           "then": "isOpen" | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   ], | ||||
|   "filter": [ | ||||
|     "open_now" | ||||
|   ] | ||||
| } | ||||
| } | ||||
|  |  | |||
|  | @ -580,5 +580,8 @@ | |||
|       "width": "1", | ||||
|       "fill": "false" | ||||
|     } | ||||
|   ], | ||||
|   "filter": [ | ||||
|     "open_now" | ||||
|   ] | ||||
| } | ||||
| } | ||||
|  |  | |||
|  | @ -42,7 +42,16 @@ | |||
|   "mapRendering": [ | ||||
|     { | ||||
|       "icon": "circle:white;./assets/layers/sports_centre/sports_centre.svg", | ||||
|       "location": ["point", "centroid"] | ||||
|       "iconBadges": [ | ||||
|         { | ||||
|           "if": "opening_hours~*", | ||||
|           "then": "isOpen" | ||||
|         } | ||||
|       ], | ||||
|       "location": [ | ||||
|         "point", | ||||
|         "centroid" | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "color": "darkgreen", | ||||
|  |  | |||
|  | @ -46,7 +46,12 @@ | |||
|             } | ||||
|           } | ||||
|         ], | ||||
|         "minzoom": 12 | ||||
|         "minzoom": 12, | ||||
|         "mapRendering": [ | ||||
|           { | ||||
|             "icon": "./assets/layers/id_presets/maki-shop.svg" | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
|     } | ||||
|   ] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue