From 710d04a77b513acbaab250ad9bed1fe58952329b Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Sat, 14 Dec 2019 18:30:47 +0700 Subject: [PATCH] added test cache server --- src/constants/providers.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) => ({