forked from MapComplete/MapComplete
Formatting
This commit is contained in:
parent
ef18846c6a
commit
ad2c7f3a46
1 changed files with 12 additions and 14 deletions
|
@ -28,7 +28,6 @@ export default class AvailableBaseLayers {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static layerOverview = AvailableBaseLayers.LoadRasterIndex().concat(AvailableBaseLayers.LoadProviderIndex());
|
public static layerOverview = AvailableBaseLayers.LoadRasterIndex().concat(AvailableBaseLayers.LoadProviderIndex());
|
||||||
public availableEditorLayers: UIEventSource<BaseLayer[]>;
|
public availableEditorLayers: UIEventSource<BaseLayer[]>;
|
||||||
|
|
||||||
|
@ -38,7 +37,7 @@ export default class AvailableBaseLayers {
|
||||||
location.map(
|
location.map(
|
||||||
(currentLocation) => {
|
(currentLocation) => {
|
||||||
|
|
||||||
if(currentLocation === undefined){
|
if (currentLocation === undefined) {
|
||||||
return AvailableBaseLayers.layerOverview;
|
return AvailableBaseLayers.layerOverview;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +60,6 @@ export default class AvailableBaseLayers {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static AvailableLayersAt(lon: number, lat: number): BaseLayer[] {
|
private static AvailableLayersAt(lon: number, lat: number): BaseLayer[] {
|
||||||
|
@ -151,10 +149,10 @@ export default class AvailableBaseLayers {
|
||||||
private static LoadProviderIndex(): BaseLayer[] {
|
private static LoadProviderIndex(): BaseLayer[] {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
X; // Import X to make sure the namespace is not optimized away
|
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 {
|
try {
|
||||||
const layer: any = () => L.tileLayer.provider(id, undefined);
|
const layer: any = () => L.tileLayer.provider(id, undefined);
|
||||||
const baseLayer : BaseLayer = {
|
const baseLayer: BaseLayer = {
|
||||||
feature: null,
|
feature: null,
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue