forked from MapComplete/MapComplete
		
	Chore: housekeeping
This commit is contained in:
		
							parent
							
								
									95f4dc859a
								
							
						
					
					
						commit
						0bdb35a016
					
				
					 42 changed files with 2792 additions and 839 deletions
				
			
		|  | @ -422,7 +422,9 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap { | |||
|             map.addSource(background.id, MapLibreAdaptor.prepareWmsSource(background)) | ||||
|         } | ||||
|         if (!map.getLayer(background.id)) { | ||||
|             addLayerBeforeId ??= map.getStyle().layers.find(l => l.id.startsWith("mapcomplete_"))?.id | ||||
|             addLayerBeforeId ??= map | ||||
|                 .getStyle() | ||||
|                 .layers.find((l) => l.id.startsWith("mapcomplete_"))?.id | ||||
|             console.log( | ||||
|                 "Adding background layer", | ||||
|                 background.id, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue