diff --git a/src/constants/providers.ts b/src/constants/providers.ts index 45be696..e91ce1d 100644 --- a/src/constants/providers.ts +++ b/src/constants/providers.ts @@ -15,6 +15,7 @@ export interface ITileMaps { YMAP: IProvider, SAT: IProvider, ESAT: IProvider, + CACHE: IProvider, } @@ -35,6 +36,11 @@ const TILEMAPS: ITileMaps = { url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', range: ['a', 'b', 'c'], }, + CACHE: { + name: 'Cache', + url: 'https://{s}.osm.tile.vault48.org/{z}/{x}/{y}.png', + range: ['a', 'b', 'c'], + }, DARQ: { name: 'Darq', url: 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', @@ -72,7 +78,7 @@ const TILEMAPS: ITileMaps = { } }; -const ENABLED: Array = ['BLANK', 'DEFAULT', 'DGIS', 'HOT', 'ESAT']; +const ENABLED: Array = ['BLANK', 'DEFAULT', 'DGIS', 'HOT', 'ESAT', 'CACHE']; export const DEFAULT_PROVIDER: keyof ITileMaps = ENABLED[0]; export const PROVIDERS: Partial = ENABLED.reduce((obj, provider) => ({