First attempt to use less resources

This commit is contained in:
Pieter Vander Vennet 2022-03-02 16:00:02 +01:00
parent f3dac0d429
commit 9574259e75
4 changed files with 26 additions and 6 deletions

View file

@ -46,6 +46,12 @@ export default class ShowDataLayer {
private readonly showDataLayerid: number;
private readonly createPopup: (tags: any, layer: LayerConfig) => ScrollableFullScreen
/**
* Creates a datalayer.
*
* If 'createPopup' is set, this function is called every time that 'popupOpen' is called
* @param options
*/
constructor(options: ShowDataLayerOptions & { layerToShow: LayerConfig }) {
this._leafletMap = options.leafletMap;
this.showDataLayerid = ShowDataLayer.dataLayerIds;