forked from MapComplete/MapComplete
		
	Added shop layer to add new post partners
This commit is contained in:
		
							parent
							
								
									916a042408
								
							
						
					
					
						commit
						ece39191ea
					
				
					 2 changed files with 134 additions and 0 deletions
				
			
		|  | @ -182,6 +182,30 @@ | |||
|           ], | ||||
|           "id": "OH" | ||||
|         }, | ||||
|         { | ||||
|           "id": "post_partner", | ||||
|           "question": { | ||||
|             "en": "Is this a post partner?" | ||||
|           }, | ||||
|           "condition": "post_office=post_partner", | ||||
|           "mappings": [ | ||||
|             { | ||||
|               "if": "post_office=post_partner", | ||||
|               "then": { | ||||
|                 "en": "This shop is a post partner" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "if": "post_office=", | ||||
|               "then": { | ||||
|                 "en": "This shop is not a post partner" | ||||
|               }, | ||||
|               "addExtraTags": [ | ||||
|                 "was:post_office=post_partner" | ||||
|               ] | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         { | ||||
|           "id": "partner-brand", | ||||
|           "render": { | ||||
|  | @ -446,6 +470,80 @@ | |||
|           } | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "id": "addLayer", | ||||
|       "name": { | ||||
|         "en": "Add new post partner" | ||||
|       }, | ||||
|       "description": { | ||||
|         "en": "Add a new post partner to the map" | ||||
|       }, | ||||
|       "source": { | ||||
|         "osmTags": "shop~*" | ||||
|       }, | ||||
|       "minzoom": 20, | ||||
|       "minzoomVisible": 20, | ||||
|       "title": { | ||||
|         "render": { | ||||
|           "en": "Shop" | ||||
|         }, | ||||
|         "mappings": [ | ||||
|           { | ||||
|             "if": "name~*", | ||||
|             "then": { | ||||
|               "en": "{name}" | ||||
|             } | ||||
|           } | ||||
|         ] | ||||
|       }, | ||||
|       "mapRendering": [ | ||||
|         { | ||||
|           "icon": { | ||||
|             "render": "./assets/themes/shops/shop.svg" | ||||
|           }, | ||||
|           "iconSize": { | ||||
|             "render": "40,40,center" | ||||
|           }, | ||||
|           "location": [ | ||||
|             "point", | ||||
|             "centroid" | ||||
|           ] | ||||
|         }, | ||||
|         { | ||||
|           "color": { | ||||
|             "render": "#DADADA" | ||||
|           }, | ||||
|           "width": { | ||||
|             "render": "1" | ||||
|           } | ||||
|         } | ||||
|       ], | ||||
|       "tagRenderings": [ | ||||
|         { | ||||
|           "id": "post_partner", | ||||
|           "question": { | ||||
|             "en": "Is this shop a post partner?" | ||||
|           }, | ||||
|           "mappings": [ | ||||
|             { | ||||
|               "if": "post_office=post_partner", | ||||
|               "then": { | ||||
|                 "en": "This shop is a post partner" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "if": "post_office=", | ||||
|               "then": { | ||||
|                 "en": "This shop is not a post partner" | ||||
|               }, | ||||
|               "addExtraTags": [ | ||||
|                 "was:post_office=post_partner" | ||||
|               ] | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   ] | ||||
| } | ||||
|  | @ -1295,6 +1295,17 @@ | |||
|                         "question": "For which brand does this location offer services?", | ||||
|                         "render": "This location offers services for {post_office:brand}" | ||||
|                     }, | ||||
|                     "post_partner": { | ||||
|                         "mappings": { | ||||
|                             "0": { | ||||
|                                 "then": "This shop is a post partner" | ||||
|                             }, | ||||
|                             "1": { | ||||
|                                 "then": "This shop is not a post partner" | ||||
|                             } | ||||
|                         }, | ||||
|                         "question": "Is this a post partner?" | ||||
|                     }, | ||||
|                     "stamps": { | ||||
|                         "mappings": { | ||||
|                             "0": { | ||||
|  | @ -1319,6 +1330,31 @@ | |||
|                     }, | ||||
|                     "render": "Post Office" | ||||
|                 } | ||||
|             }, | ||||
|             "2": { | ||||
|                 "description": "Add a new post partner to the map", | ||||
|                 "name": "Add new post partner", | ||||
|                 "tagRenderings": { | ||||
|                     "post_partner": { | ||||
|                         "mappings": { | ||||
|                             "0": { | ||||
|                                 "then": "This shop is a post partner" | ||||
|                             }, | ||||
|                             "1": { | ||||
|                                 "then": "This shop is not a post partner" | ||||
|                             } | ||||
|                         }, | ||||
|                         "question": "Is this a post partner?" | ||||
|                     } | ||||
|                 }, | ||||
|                 "title": { | ||||
|                     "mappings": { | ||||
|                         "0": { | ||||
|                             "then": "{name}" | ||||
|                         } | ||||
|                     }, | ||||
|                     "render": "Shop" | ||||
|                 } | ||||
|             } | ||||
|         }, | ||||
|         "shortDescription": "A map showing postboxes and post offices", | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue