forked from MapComplete/MapComplete
		
	Refactoring: move download functionality for OsmObjects into a new object
This commit is contained in:
		
							parent
							
								
									8eb2c68f79
								
							
						
					
					
						commit
						1f9aacfb29
					
				
					 23 changed files with 633 additions and 901 deletions
				
			
		|  | @ -42,6 +42,7 @@ import { MenuState } from "./MenuState" | |||
| import MetaTagging from "../Logic/MetaTagging" | ||||
| import ChangeGeometryApplicator from "../Logic/FeatureSource/Sources/ChangeGeometryApplicator" | ||||
| import { NewGeometryFromChangesFeatureSource } from "../Logic/FeatureSource/Sources/NewGeometryFromChangesFeatureSource" | ||||
| import OsmObjectDownloader from "../Logic/Osm/OsmObjectDownloader"; | ||||
| 
 | ||||
| /** | ||||
|  * | ||||
|  | @ -64,6 +65,7 @@ export default class ThemeViewState implements SpecialVisualizationState { | |||
|     readonly osmConnection: OsmConnection | ||||
|     readonly selectedElement: UIEventSource<Feature> | ||||
|     readonly mapProperties: MapProperties & ExportableMap | ||||
|     readonly osmObjectDownloader: OsmObjectDownloader | ||||
| 
 | ||||
|     readonly dataIsLoading: Store<boolean> | ||||
|     readonly guistate: MenuState | ||||
|  | @ -213,6 +215,8 @@ export default class ThemeViewState implements SpecialVisualizationState { | |||
|             this.layout | ||||
|         )) | ||||
| 
 | ||||
|         this.osmObjectDownloader = new OsmObjectDownloader(this.osmConnection.Backend(), this.changes) | ||||
| 
 | ||||
|         this.initActors() | ||||
|         this.drawSpecialLayers(lastClick) | ||||
|         this.initHotkeys() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue