forked from MapComplete/MapComplete
		
	Add cycle_highways theme, add configurable overpass backend as feature switch (settable via theme and URL)
This commit is contained in:
		
							parent
							
								
									f4ea36de9a
								
							
						
					
					
						commit
						ef0826ebb6
					
				
					 21 changed files with 377 additions and 48 deletions
				
			
		|  | @ -53,6 +53,9 @@ export default class LayoutConfig { | |||
|     public readonly cacheTimeout?: number; | ||||
|     public readonly units: Unit[] = [] | ||||
|     private readonly _official: boolean; | ||||
|      | ||||
|     public readonly overpassUrl: string; | ||||
|     public readonly overpassTimeout: number; | ||||
| 
 | ||||
|     constructor(json: LayoutConfigJson, official = true, context?: string) { | ||||
|         this._official = official; | ||||
|  | @ -160,7 +163,8 @@ export default class LayoutConfig { | |||
|         this.enablePdfDownload = json.enablePdfDownload ?? false; | ||||
|         this.customCss = json.customCss; | ||||
|         this.cacheTimeout = json.cacheTimout ?? (60 * 24 * 60 * 60) | ||||
| 
 | ||||
|         this.overpassUrl = json.overpassUrl ?? "https://overpass-api.de/api/interpreter" | ||||
|         this.overpassTimeout = json.overpassTimeout ?? 30 | ||||
| 
 | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue