Fix optimalization, some cleanup

This commit is contained in:
Pieter Vander Vennet 2022-03-02 17:13:21 +01:00
parent 8c9e2a36b3
commit d40d77d86f
13 changed files with 8 additions and 20 deletions

View file

@ -44,7 +44,7 @@ export default class ShowDataLayer {
*/
private readonly leafletLayersPerId = new Map<string, { feature: any, leafletlayer: any }>()
private readonly showDataLayerid: number;
private readonly createPopup: (tags: any, layer: LayerConfig) => ScrollableFullScreen
private readonly createPopup: (tags: UIEventSource<any>, layer: LayerConfig) => ScrollableFullScreen
/**
* Creates a datalayer.

View file

@ -8,7 +8,7 @@ export interface ShowDataLayerOptions {
features: FeatureSource,
selectedElement?: UIEventSource<any>,
leafletMap: UIEventSource<L.Map>,
popup?: undefined | ((tags: any, layer: LayerConfig) => ScrollableFullScreen),
popup?: undefined | ((tags: UIEventSource<any>, layer: LayerConfig) => ScrollableFullScreen),
zoomToFeatures?: false | boolean,
doShowLayer?: UIEventSource<boolean>,
state?: { allElements?: ElementStorage }

View file

@ -56,7 +56,6 @@ export default class ShowTileInfo {
leafletMap: options.leafletMap,
doShowLayer: options.doShowLayer,
state: State.state,
popup: undefined
})
}