forked from MapComplete/MapComplete
		
	refactoring: fix basic flow to add a new point
This commit is contained in:
		
							parent
							
								
									52a0810ea9
								
							
						
					
					
						commit
						0241f89d3d
					
				
					 109 changed files with 1931 additions and 1446 deletions
				
			
		|  | @ -2,7 +2,11 @@ import { Store, UIEventSource } from "../Logic/UIEventSource" | |||
| import BaseUIElement from "./BaseUIElement" | ||||
| import { DefaultGuiState } from "./DefaultGuiState" | ||||
| import LayoutConfig from "../Models/ThemeConfig/LayoutConfig" | ||||
| import { IndexedFeatureSource, WritableFeatureSource } from "../Logic/FeatureSource/FeatureSource" | ||||
| import { | ||||
|     FeatureSource, | ||||
|     IndexedFeatureSource, | ||||
|     WritableFeatureSource, | ||||
| } from "../Logic/FeatureSource/FeatureSource" | ||||
| import { OsmConnection } from "../Logic/Osm/OsmConnection" | ||||
| import { Changes } from "../Logic/Osm/Changes" | ||||
| import { MapProperties } from "../Models/MapProperties" | ||||
|  | @ -13,12 +17,14 @@ import { MangroveIdentity } from "../Logic/Web/MangroveReviews" | |||
| import { GeoIndexedStoreForLayer } from "../Logic/FeatureSource/Actors/GeoIndexedStore" | ||||
| import LayerConfig from "../Models/ThemeConfig/LayerConfig" | ||||
| import FeatureSwitchState from "../Logic/State/FeatureSwitchState" | ||||
| import SimpleFeatureSource from "../Logic/FeatureSource/Sources/SimpleFeatureSource" | ||||
| import { MenuState } from "../Models/MenuState" | ||||
| 
 | ||||
| /** | ||||
|  * The state needed to render a special Visualisation. | ||||
|  */ | ||||
| export interface SpecialVisualizationState { | ||||
|     readonly guistate: DefaultGuiState | ||||
|     readonly guistate: MenuState | ||||
|     readonly layout: LayoutConfig | ||||
|     readonly featureSwitches: FeatureSwitchState | ||||
| 
 | ||||
|  | @ -27,6 +33,12 @@ export interface SpecialVisualizationState { | |||
| 
 | ||||
|     readonly indexedFeatures: IndexedFeatureSource | ||||
| 
 | ||||
|     /** | ||||
|      * Some features will create a new element that should be displayed. | ||||
|      * These can be injected by appending them to this featuresource (and pinging it) | ||||
|      */ | ||||
|     readonly newFeatures: WritableFeatureSource | ||||
| 
 | ||||
|     readonly historicalUserLocations: WritableFeatureSource | ||||
| 
 | ||||
|     readonly osmConnection: OsmConnection | ||||
|  | @ -39,6 +51,10 @@ export interface SpecialVisualizationState { | |||
|     readonly mapProperties: MapProperties | ||||
| 
 | ||||
|     readonly selectedElement: UIEventSource<Feature> | ||||
|     /** | ||||
|      * Works together with 'selectedElement' to indicate what properties should be displayed | ||||
|      */ | ||||
|     readonly selectedLayer: UIEventSource<LayerConfig> | ||||
| 
 | ||||
|     /** | ||||
|      * If data is currently being fetched from external sources | ||||
|  | @ -54,6 +70,7 @@ export interface SpecialVisualizationState { | |||
|         readonly mangroveIdentity: MangroveIdentity | ||||
|         readonly showAllQuestionsAtOnce: UIEventSource<boolean> | ||||
|     } | ||||
|     readonly lastClickObject: WritableFeatureSource | ||||
| } | ||||
| 
 | ||||
| export interface SpecialVisualization { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue