forked from MapComplete/MapComplete
		
	Fix import flow, add typing
This commit is contained in:
		
							parent
							
								
									97334fc369
								
							
						
					
					
						commit
						4246221e8e
					
				
					 29 changed files with 396 additions and 309 deletions
				
			
		|  | @ -1,14 +1,14 @@ | |||
| /** | ||||
|  * SHows geojson on the given leaflet map, but attempts to figure out the correct layer first | ||||
|  */ | ||||
| import {UIEventSource} from "../../Logic/UIEventSource"; | ||||
| import {Store} from "../../Logic/UIEventSource"; | ||||
| import ShowDataLayer from "./ShowDataLayer"; | ||||
| import PerLayerFeatureSourceSplitter from "../../Logic/FeatureSource/PerLayerFeatureSourceSplitter"; | ||||
| import FilteredLayer from "../../Models/FilteredLayer"; | ||||
| import {ShowDataLayerOptions} from "./ShowDataLayerOptions"; | ||||
| 
 | ||||
| export default class ShowDataMultiLayer { | ||||
|     constructor(options: ShowDataLayerOptions & { layers: UIEventSource<FilteredLayer[]> }) { | ||||
|     constructor(options: ShowDataLayerOptions & { layers: Store<FilteredLayer[]> }) { | ||||
| 
 | ||||
|         new PerLayerFeatureSourceSplitter(options.layers, (perLayer => { | ||||
|                 const newOptions = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue