Formatting

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

View file

@ -14,19 +14,18 @@ import {Utils} from "../../Utils";
export default class AvailableBaseLayers {
public static osmCarto: BaseLayer =
public static osmCarto: BaseLayer =
{
id: "osm",
name: "OpenStreetMap",
name: "OpenStreetMap",
layer: () => AvailableBaseLayers.CreateBackgroundLayer("osm", "OpenStreetMap",
"https://tile.openstreetmap.org/{z}/{x}/{y}.png", "OpenStreetMap", "https://openStreetMap.org/copyright",
19,
false, false),
"https://tile.openstreetmap.org/{z}/{x}/{y}.png", "OpenStreetMap", "https://openStreetMap.org/copyright",
19,
false, false),
feature: null,
max_zoom: 19,
min_zoom: 0
}
}
public static layerOverview = AvailableBaseLayers.LoadRasterIndex().concat(AvailableBaseLayers.LoadProviderIndex());
@ -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,