forked from MapComplete/MapComplete
		
	Add cache timeout option on layerSource
This commit is contained in:
		
							parent
							
								
									1bc7978f7c
								
							
						
					
					
						commit
						c99e15eed9
					
				
					 7 changed files with 67 additions and 51 deletions
				
			
		|  | @ -60,8 +60,13 @@ export interface LayerConfigJson { | |||
|      * NOTE: the previous format was 'overpassTags: AndOrTagConfigJson | string', which is interpreted as a shorthand for source: {osmTags: "key=value"} | ||||
|      *  While still supported, this is considered deprecated | ||||
|      */ | ||||
|     source: { osmTags: AndOrTagConfigJson | string, overpassScript?: string  } | | ||||
|         { osmTags: AndOrTagConfigJson | string, geoJson: string, geoJsonZoomLevel?: number, isOsmCache?: boolean } | ||||
|     source: ({ osmTags: AndOrTagConfigJson | string, overpassScript?: string  } | | ||||
|         { osmTags: AndOrTagConfigJson | string, geoJson: string, geoJsonZoomLevel?: number, isOsmCache?: boolean }) & ({ | ||||
|         /** | ||||
|          * The maximum amount of seconds that a tile is allowed to linger in the cache | ||||
|          */ | ||||
|         maxCacheAge?: number | ||||
|     }) | ||||
|      | ||||
|     /** | ||||
|      * | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue