forked from MapComplete/MapComplete
		
	Merge pull request 'Add charge point layer' (#2296) from Robin-van-der-Linde/MapComplete:charge-point into develop
Reviewed-on: MapComplete/MapComplete#2296 Reviewed-by: Pieter Vander Vennet <pietervdvn@nerdlab.nohost.me>
This commit is contained in:
		
						commit
						ded0aecd57
					
				
					 4 changed files with 90 additions and 7 deletions
				
			
		
							
								
								
									
										77
									
								
								assets/layers/charge_point/charge_point.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										77
									
								
								assets/layers/charge_point/charge_point.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,77 @@ | ||||||
|  | { | ||||||
|  |   "id": "charge_point", | ||||||
|  |   "name": { | ||||||
|  |     "en": "Charge points" | ||||||
|  |   }, | ||||||
|  |   "description": { | ||||||
|  |     "en": "Layer showing individual charge points within a charging station" | ||||||
|  |   }, | ||||||
|  |   "source": { | ||||||
|  |     "osmTags": "man_made=charge_point" | ||||||
|  |   }, | ||||||
|  |   "minzoom": 18, | ||||||
|  |   "title": { | ||||||
|  |     "render": { | ||||||
|  |       "en": "Charge point" | ||||||
|  |     } | ||||||
|  |   }, | ||||||
|  |   "tagRenderings": [ | ||||||
|  |     "images", | ||||||
|  |     { | ||||||
|  |       "id": "ref", | ||||||
|  |       "question": { | ||||||
|  |         "en": "What is the reference number of this charge point?" | ||||||
|  |       }, | ||||||
|  |       "freeform": { | ||||||
|  |         "key": "ref", | ||||||
|  |         "placeholder": { | ||||||
|  |           "en": "Reference number of the charge point, e.g. 2126" | ||||||
|  |         } | ||||||
|  |       }, | ||||||
|  |       "render": { | ||||||
|  |         "en": "The reference of this charge point is {ref}" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     "charging_station.capacity", | ||||||
|  |     "charging_station.Available_charging_stations (generated)", | ||||||
|  |     "charging_station.plugs-amount", | ||||||
|  |     "questions", | ||||||
|  |     "charging_station.questions-technical", | ||||||
|  |     "charging_station.technical" | ||||||
|  |   ], | ||||||
|  |   "pointRendering": [ | ||||||
|  |     { | ||||||
|  |       "location": [ | ||||||
|  |         "point", | ||||||
|  |         "centroid" | ||||||
|  |       ], | ||||||
|  |       "marker": [ | ||||||
|  |         { | ||||||
|  |           "icon": "circle", | ||||||
|  |           "color": "lightblue" | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           "icon": "./assets/themes/charging_stations/plug.svg" | ||||||
|  |         } | ||||||
|  |       ], | ||||||
|  |       "iconSize": "25,25" | ||||||
|  |     } | ||||||
|  |   ], | ||||||
|  |   "presets": [ | ||||||
|  |     { | ||||||
|  |       "title": { | ||||||
|  |         "en": "a charge point" | ||||||
|  |       }, | ||||||
|  |       "tags": [ | ||||||
|  |         "man_made=charge_point" | ||||||
|  |       ], | ||||||
|  |       "description": { | ||||||
|  |         "en": "Add an individual charge point within a larger charging station" | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |   ], | ||||||
|  |   "allowMove": { | ||||||
|  |     "enableImproveAccuracy": true, | ||||||
|  |     "enableRelocation": false | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | @ -2175,7 +2175,10 @@ | ||||||
|               "{{key}}~*", |               "{{key}}~*", | ||||||
|               "{{key}}!=0" |               "{{key}}!=0" | ||||||
|             ] |             ] | ||||||
|           } |           }, | ||||||
|  |           "labels": [ | ||||||
|  |             "plugs-amount" | ||||||
|  |           ] | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           "id": "voltage-{{id}}", |           "id": "voltage-{{id}}", | ||||||
|  |  | ||||||
|  | @ -244,7 +244,10 @@ | ||||||
|               "{{key}}~*", |               "{{key}}~*", | ||||||
|               "{{key}}!=0" |               "{{key}}!=0" | ||||||
|             ] |             ] | ||||||
|           } |           }, | ||||||
|  |           "labels": [ | ||||||
|  |             "plugs-amount" | ||||||
|  |           ] | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           "id": "voltage-{{id}}", |           "id": "voltage-{{id}}", | ||||||
|  |  | ||||||
|  | @ -62,7 +62,7 @@ | ||||||
|   }, |   }, | ||||||
|   "icon": "./assets/themes/charging_stations/logo.svg", |   "icon": "./assets/themes/charging_stations/logo.svg", | ||||||
|   "layers": [ |   "layers": [ | ||||||
|     "charging_station" |     "charging_station", | ||||||
|   ], |     "charge_point" | ||||||
|   "widenFactor": 1.5 |   ] | ||||||
| } | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue