forked from MapComplete/MapComplete
		
	Refactoring(maplibre): remove 'freshness' and 'name' from FeatureSource to simplify the code
This commit is contained in:
		
							parent
							
								
									1b3609b13f
								
							
						
					
					
						commit
						231d67361e
					
				
					 30 changed files with 161 additions and 269 deletions
				
			
		|  | @ -1,15 +1,10 @@ | |||
| import { Store, UIEventSource } from "../UIEventSource" | ||||
| import { Store } from "../UIEventSource" | ||||
| import FilteredLayer from "../../Models/FilteredLayer" | ||||
| import { BBox } from "../BBox" | ||||
| import { Feature, Geometry } from "@turf/turf" | ||||
| import { OsmFeature } from "../../Models/OsmFeature" | ||||
| import { Feature } from "geojson" | ||||
| 
 | ||||
| export default interface FeatureSource { | ||||
|     features: Store<{ feature: OsmFeature; freshness: Date }[]> | ||||
|     /** | ||||
|      * Mainly used for debuging | ||||
|      */ | ||||
|     name: string | ||||
|     features: Store<Feature[]> | ||||
| } | ||||
| 
 | ||||
| export interface Tiled { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue