forked from MapComplete/MapComplete
		
	Some tweaking
This commit is contained in:
		
							parent
							
								
									650c1a675c
								
							
						
					
					
						commit
						46e7cf5833
					
				
					 2 changed files with 12 additions and 15 deletions
				
			
		|  | @ -1,14 +1,14 @@ | |||
| import { Store, UIEventSource } from "../../Logic/UIEventSource" | ||||
| import type { Map as MLMap } from "maplibre-gl" | ||||
| import { Map as MlMap, SourceSpecification } from "maplibre-gl" | ||||
| import { AvailableRasterLayers, RasterLayerPolygon } from "../../Models/RasterLayers" | ||||
| import { Utils } from "../../Utils" | ||||
| import { BBox } from "../../Logic/BBox" | ||||
| import { ExportableMap, MapProperties } from "../../Models/MapProperties" | ||||
| import SvelteUIElement from "../Base/SvelteUIElement" | ||||
| import MaplibreMap from "./MaplibreMap.svelte" | ||||
| import { RasterLayerProperties } from "../../Models/RasterLayerProperties" | ||||
| import * as htmltoimage from "html-to-image" | ||||
| import { Store, UIEventSource } from "../../Logic/UIEventSource"; | ||||
| import type { Map as MLMap } from "maplibre-gl"; | ||||
| import { Map as MlMap, SourceSpecification } from "maplibre-gl"; | ||||
| import { AvailableRasterLayers, RasterLayerPolygon } from "../../Models/RasterLayers"; | ||||
| import { Utils } from "../../Utils"; | ||||
| import { BBox } from "../../Logic/BBox"; | ||||
| import { ExportableMap, MapProperties } from "../../Models/MapProperties"; | ||||
| import SvelteUIElement from "../Base/SvelteUIElement"; | ||||
| import MaplibreMap from "./MaplibreMap.svelte"; | ||||
| import { RasterLayerProperties } from "../../Models/RasterLayerProperties"; | ||||
| import * as htmltoimage from "html-to-image"; | ||||
| 
 | ||||
| /** | ||||
|  * The 'MapLibreAdaptor' bridges 'MapLibre' with the various properties of the `MapProperties` | ||||
|  |  | |||
|  | @ -230,10 +230,7 @@ class LineRenderingLayer { | |||
|         const self = this | ||||
|         features.features.addCallbackAndRunD(() => self.update(features.features)) | ||||
| 
 | ||||
|         map.on("styledata", () => { | ||||
|             self._listenerInstalledOn.clear() | ||||
|             return self.update(features.features); | ||||
|         }) | ||||
|         map.on("styledata", () => self.update(features.features)) | ||||
|     } | ||||
| 
 | ||||
|     public destruct(): void { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue