import TilesourceConfig from "../../Models/ThemeConfig/TilesourceConfig"; import {UIEventSource} from "../../Logic/UIEventSource"; import * as L from "leaflet"; export default class ShowOverlayLayer { public static implementation: (config: TilesourceConfig, leafletMap: UIEventSource, isShown?: UIEventSource) => void; constructor(config: TilesourceConfig, leafletMap: UIEventSource, isShown: UIEventSource = undefined) { if(ShowOverlayLayer.implementation === undefined){ throw "Call ShowOverlayLayerImplemenation.initialize() first before using this" } ShowOverlayLayer.implementation(config, leafletMap, isShown) } }