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