forked from MapComplete/MapComplete
Small fixes, add geolocation feature switch
This commit is contained in:
parent
97a69ff903
commit
de9bb13568
6 changed files with 38 additions and 6 deletions
24
Customizations/JSON/TagRenderingParser.ts
Normal file
24
Customizations/JSON/TagRenderingParser.ts
Normal 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);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -41,6 +41,7 @@ export class Layout {
|
|||
*/
|
||||
public widenFactor: number = 0.07;
|
||||
public defaultBackground: string = "osm";
|
||||
public enableGeolocation: boolean = true;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue