forked from MapComplete/MapComplete
Full code cleanup
This commit is contained in:
parent
8e6ee8c87f
commit
bd21212eba
246 changed files with 19418 additions and 11729 deletions
|
@ -1,19 +1,18 @@
|
|||
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<any>,
|
||||
isShown?: UIEventSource<boolean>) => void;
|
||||
|
||||
|
||||
constructor(config: TilesourceConfig,
|
||||
leafletMap: UIEventSource<any>,
|
||||
isShown: UIEventSource<boolean> = undefined) {
|
||||
if(ShowOverlayLayer.implementation === undefined){
|
||||
if (ShowOverlayLayer.implementation === undefined) {
|
||||
throw "Call ShowOverlayLayerImplemenation.initialize() first before using this"
|
||||
}
|
||||
ShowOverlayLayer.implementation(config, leafletMap, isShown)
|
||||
ShowOverlayLayer.implementation(config, leafletMap, isShown)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue