forked from MapComplete/MapComplete
		
	Add binoculars theme, auto reformat everything
This commit is contained in:
		
							parent
							
								
									38dea806c5
								
							
						
					
					
						commit
						78d6482c88
					
				
					 586 changed files with 115573 additions and 111842 deletions
				
			
		|  | @ -8,17 +8,17 @@ export default class RememberingSource implements FeatureSource { | |||
|     public readonly features: UIEventSource<{ feature: any, freshness: Date }[]>; | ||||
| 
 | ||||
|     public readonly name; | ||||
|      | ||||
| 
 | ||||
|     constructor(source: FeatureSource) { | ||||
|         const self = this; | ||||
|         this.name = "RememberingSource of "+source.name; | ||||
|         this.name = "RememberingSource of " + source.name; | ||||
|         const empty = []; | ||||
|         this.features = source.features.map(features => { | ||||
|             const oldFeatures = self.features?.data ?? empty; | ||||
|             if (features === undefined) { | ||||
|                 return oldFeatures; | ||||
|             } | ||||
|             | ||||
| 
 | ||||
|             // Then new ids
 | ||||
|             const ids = new Set<string>(features.map(f => f.feature.properties.id + f.feature.geometry.type + f.feature._matching_layer_id)); | ||||
|             // the old data
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue