refactoring(maplibre): add pointRendering
This commit is contained in:
parent
4f2bbf4b54
commit
1b3609b13f
10 changed files with 316 additions and 122 deletions
|
@ -3,13 +3,35 @@ import { Store, UIEventSource } from "../../Logic/UIEventSource"
|
|||
import { ElementStorage } from "../../Logic/ElementStorage"
|
||||
import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
|
||||
import ScrollableFullScreen from "../Base/ScrollableFullScreen"
|
||||
import { OsmTags } from "../../Models/OsmFeature"
|
||||
|
||||
export interface ShowDataLayerOptions {
|
||||
/**
|
||||
* Features to show
|
||||
*/
|
||||
features: FeatureSource
|
||||
/**
|
||||
* Indication of the current selected element; overrides some filters
|
||||
*/
|
||||
selectedElement?: UIEventSource<any>
|
||||
leafletMap: Store<L.Map>
|
||||
popup?: undefined | ((tags: UIEventSource<any>, layer: LayerConfig) => ScrollableFullScreen)
|
||||
/**
|
||||
* What popup to build when a feature is selected
|
||||
*/
|
||||
buildPopup?:
|
||||
| undefined
|
||||
| ((tags: UIEventSource<any>, layer: LayerConfig) => ScrollableFullScreen)
|
||||
|
||||
/**
|
||||
* If set, zoom to the features when initially loaded and when they are changed
|
||||
*/
|
||||
zoomToFeatures?: false | boolean
|
||||
doShowLayer?: Store<boolean>
|
||||
state?: { allElements?: ElementStorage }
|
||||
/**
|
||||
* Toggles the layer on/off
|
||||
*/
|
||||
doShowLayer?: Store<true | boolean>
|
||||
|
||||
/**
|
||||
* Function which fetches the relevant store
|
||||
*/
|
||||
fetchStore?: (id: string) => Store<OsmTags>
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue