forked from MapComplete/MapComplete
Fix optimalization, some cleanup
This commit is contained in:
parent
8c9e2a36b3
commit
d40d77d86f
13 changed files with 8 additions and 20 deletions
|
@ -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.
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -56,7 +56,6 @@ export default class ShowTileInfo {
|
|||
leafletMap: options.leafletMap,
|
||||
doShowLayer: options.doShowLayer,
|
||||
state: State.state,
|
||||
popup: undefined
|
||||
})
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue