forked from MapComplete/MapComplete
First attempt to use less resources
This commit is contained in:
parent
f3dac0d429
commit
9574259e75
4 changed files with 26 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue