forked from MapComplete/MapComplete
Reformat all files with prettier
This commit is contained in:
parent
e22d189376
commit
b541d3eab4
382 changed files with 50893 additions and 35566 deletions
|
@ -1,12 +1,13 @@
|
|||
/**
|
||||
* The data layer shows all the given geojson elements with the appropriate icon etc
|
||||
*/
|
||||
import {ShowDataLayerOptions} from "./ShowDataLayerOptions";
|
||||
import LayerConfig from "../../Models/ThemeConfig/LayerConfig";
|
||||
import { ShowDataLayerOptions } from "./ShowDataLayerOptions"
|
||||
import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
|
||||
|
||||
export default class ShowDataLayer {
|
||||
|
||||
public static actualContstructor : (options: ShowDataLayerOptions & { layerToShow: LayerConfig }) => void = undefined;
|
||||
public static actualContstructor: (
|
||||
options: ShowDataLayerOptions & { layerToShow: LayerConfig }
|
||||
) => void = undefined
|
||||
|
||||
/**
|
||||
* Creates a datalayer.
|
||||
|
@ -15,11 +16,9 @@ export default class ShowDataLayer {
|
|||
* @param options
|
||||
*/
|
||||
constructor(options: ShowDataLayerOptions & { layerToShow: LayerConfig }) {
|
||||
if(ShowDataLayer.actualContstructor === undefined){
|
||||
if (ShowDataLayer.actualContstructor === undefined) {
|
||||
throw "Show data layer is called, but it isn't initialized yet. Call ` ShowDataLayer.actualContstructor = (options => new ShowDataLayerImplementation(options)) ` somewhere, e.g. in your init"
|
||||
}
|
||||
ShowDataLayer.actualContstructor(options)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue