forked from MapComplete/MapComplete
		
	Geolocation: improve handle on click
This commit is contained in:
		
							parent
							
								
									dca17742b4
								
							
						
					
					
						commit
						2fb686b760
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -34,6 +34,7 @@ | ||||||
|   let gpsAvailable = geolocation.gpsAvailable |   let gpsAvailable = geolocation.gpsAvailable | ||||||
| 
 | 
 | ||||||
|   function jumpToCurrentLocation() { |   function jumpToCurrentLocation() { | ||||||
|  |     state.geolocationControl.handleClick() | ||||||
|     const glstate = state.geolocation.geolocationState |     const glstate = state.geolocation.geolocationState | ||||||
|     if (glstate.currentGPSLocation.data !== undefined) { |     if (glstate.currentGPSLocation.data !== undefined) { | ||||||
|       const c: GeolocationCoordinates = glstate.currentGPSLocation.data |       const c: GeolocationCoordinates = glstate.currentGPSLocation.data | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue