Formatting

This commit is contained in:
pietervdvn 2021-06-24 13:52:43 +02:00
parent ef18846c6a
commit ad2c7f3a46

View file

@ -28,7 +28,6 @@ export default class AvailableBaseLayers {
}
public static layerOverview = AvailableBaseLayers.LoadRasterIndex().concat(AvailableBaseLayers.LoadProviderIndex());
public availableEditorLayers: UIEventSource<BaseLayer[]>;
@ -38,7 +37,7 @@ export default class AvailableBaseLayers {
location.map(
(currentLocation) => {
if(currentLocation === undefined){
if (currentLocation === undefined) {
return AvailableBaseLayers.layerOverview;
}
@ -61,7 +60,6 @@ export default class AvailableBaseLayers {
});
}
private static AvailableLayersAt(lon: number, lat: number): BaseLayer[] {
@ -151,10 +149,10 @@ export default class AvailableBaseLayers {
private static LoadProviderIndex(): BaseLayer[] {
// @ts-ignore
X; // Import X to make sure the namespace is not optimized away
function l(id: string, name: string) : BaseLayer{
function l(id: string, name: string): BaseLayer {
try {
const layer: any = () => L.tileLayer.provider(id, undefined);
const baseLayer : BaseLayer = {
const baseLayer: BaseLayer = {
feature: null,
id: id,
name: name,