Small fixes, add geolocation feature switch

This commit is contained in:
Pieter Vander Vennet 2020-08-08 14:43:48 +02:00
parent 97a69ff903
commit de9bb13568
6 changed files with 38 additions and 6 deletions

View file

@ -0,0 +1,24 @@
import {TagRenderingOptions} from "../TagRenderingOptions";
import {LayerDefinition} from "../LayerDefinition";
export class CustomizationFromJSON {
public exampleLayer = {
id: "bookcases",
}
/*
public static LayerFromJson(spec: any) : LayerDefinition{
return new LayerDefinition(spec.id,{
})
}
*/
public static TagRenderingOptionsFromJson(spec: any) : TagRenderingOptions{
return new TagRenderingOptions(spec);
}
}

View file

@ -41,6 +41,7 @@ export class Layout {
*/
public widenFactor: number = 0.07;
public defaultBackground: string = "osm";
public enableGeolocation: boolean = true;
/**
*