forked from MapComplete/MapComplete
		
	Fix reading of location from the URL, close #138
This commit is contained in:
		
							parent
							
								
									6a2b3d82de
								
							
						
					
					
						commit
						4a563c7a10
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										6
									
								
								State.ts
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								State.ts
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -141,11 +141,11 @@ export default class State {
 | 
			
		|||
        }
 | 
			
		||||
        this.zoom = asFloat(
 | 
			
		||||
            QueryParameters.GetQueryParameter("z", "" + layoutToUse.startzoom)
 | 
			
		||||
            .syncWith(LocalStorageSource.Get("zoom"), true));
 | 
			
		||||
            .syncWith(LocalStorageSource.Get("zoom")));
 | 
			
		||||
        this.lat = asFloat(QueryParameters.GetQueryParameter("lat", "" + layoutToUse.startLat)
 | 
			
		||||
            .syncWith(LocalStorageSource.Get("lat"), true));
 | 
			
		||||
            .syncWith(LocalStorageSource.Get("lat")));
 | 
			
		||||
        this.lon = asFloat(QueryParameters.GetQueryParameter("lon", "" + layoutToUse.startLon)
 | 
			
		||||
            .syncWith(LocalStorageSource.Get("lon"), true));
 | 
			
		||||
            .syncWith(LocalStorageSource.Get("lon")));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        this.locationControl = new UIEventSource<{ lat: number, lon: number, zoom: number }>({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue