forked from MapComplete/MapComplete
		
	Fix: fix #1477. Setting the background caused a map.resize(), which in turn caused the coordinates to be set to 0,0, which caused the location-correction to kick in, moving the location input towards null island
This commit is contained in:
		
							parent
							
								
									68e07d7d7b
								
							
						
					
					
						commit
						d95d96fb1b
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		|  | @ -411,8 +411,6 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap { | |||
| 
 | ||||
|         map.addSource(background.id, MapLibreAdaptor.prepareWmsSource(background)) | ||||
| 
 | ||||
|         map.resize() | ||||
| 
 | ||||
|         let addLayerBeforeId = "aeroway_fill" // this is the first non-landuse item in the stylesheet, we add the raster layer before the roads but above the landuse
 | ||||
|         if (background.category === "osmbasedmap" || background.category === "map") { | ||||
|             // The background layer is already an OSM-based map or another map, so we don't want anything from the baselayer
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue