forked from MapComplete/MapComplete
		
	Merge pull request #974 from pietervdvn/RobinLinde/issue-966
Added name label and opening hours icon/filter
This commit is contained in:
		
						commit
						ab1581f18c
					
				
					 1 changed files with 53 additions and 23 deletions
				
			
		|  | @ -26,6 +26,22 @@ | |||
|   "minzoom": 13, | ||||
|   "tagRenderings": [ | ||||
|     "images", | ||||
|     { | ||||
|       "id": "name", | ||||
|       "freeform": { | ||||
|         "key": "name", | ||||
|         "type": "string", | ||||
|         "placeholder": { | ||||
|           "en": "Name of the pharmacy" | ||||
|         } | ||||
|       }, | ||||
|       "question": { | ||||
|         "en": "What is the name of the pharmacy?" | ||||
|       }, | ||||
|       "render": { | ||||
|         "en": "This pharmacy is called {name}" | ||||
|       } | ||||
|     }, | ||||
|     "opening_hours", | ||||
|     "phone", | ||||
|     "email", | ||||
|  | @ -66,31 +82,45 @@ | |||
|       "location": [ | ||||
|         "point", | ||||
|         "centroid" | ||||
|       ] | ||||
|       ], | ||||
|       "iconBadges": [ | ||||
|         { | ||||
|           "if": "opening_hours~*", | ||||
|           "then": "isOpen" | ||||
|         } | ||||
|       ], | ||||
|       "label": { | ||||
|         "mappings": [ | ||||
|           { | ||||
|             "if": "name~*", | ||||
|             "then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>" | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
|     } | ||||
|   ], | ||||
|       "filter": [ | ||||
|   "filter": [ | ||||
|     { | ||||
|       "id": "drive-through", | ||||
|       "options": [ | ||||
|         { | ||||
|             "id": "drive-through", | ||||
|             "options": [ | ||||
|                 { | ||||
|                     "question": { | ||||
|                         "en": "Has drive through" | ||||
|                     }, | ||||
|                     "osmTags": "drive_through=yes" | ||||
|                 } | ||||
|             ] | ||||
|         }, | ||||
|         { | ||||
|             "id": "dispensing", | ||||
|             "options": [ | ||||
|                 { | ||||
|                     "question": { | ||||
|                         "en": "Pharmacy able to provide prescription drugs" | ||||
|                     }, | ||||
|                     "osmTags": "dispensing=yes" | ||||
|                 } | ||||
|             ] | ||||
|           "question": { | ||||
|             "en": "Has drive through" | ||||
|           }, | ||||
|           "osmTags": "drive_through=yes" | ||||
|         } | ||||
|     ] | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "id": "dispensing", | ||||
|       "options": [ | ||||
|         { | ||||
|           "question": { | ||||
|             "en": "Pharmacy able to provide prescription drugs" | ||||
|           }, | ||||
|           "osmTags": "dispensing=yes" | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   ] | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue