mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
added test cache server
This commit is contained in:
parent
ba446169a9
commit
710d04a77b
1 changed files with 7 additions and 1 deletions
|
@ -15,6 +15,7 @@ export interface ITileMaps {
|
||||||
YMAP: IProvider,
|
YMAP: IProvider,
|
||||||
SAT: IProvider,
|
SAT: IProvider,
|
||||||
ESAT: IProvider,
|
ESAT: IProvider,
|
||||||
|
CACHE: IProvider,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,6 +36,11 @@ const TILEMAPS: ITileMaps = {
|
||||||
url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
||||||
range: ['a', 'b', 'c'],
|
range: ['a', 'b', 'c'],
|
||||||
},
|
},
|
||||||
|
CACHE: {
|
||||||
|
name: 'Cache',
|
||||||
|
url: 'https://{s}.osm.tile.vault48.org/{z}/{x}/{y}.png',
|
||||||
|
range: ['a', 'b', 'c'],
|
||||||
|
},
|
||||||
DARQ: {
|
DARQ: {
|
||||||
name: 'Darq',
|
name: 'Darq',
|
||||||
url: 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',
|
url: 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',
|
||||||
|
@ -72,7 +78,7 @@ const TILEMAPS: ITileMaps = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const ENABLED: Array<keyof ITileMaps> = ['BLANK', 'DEFAULT', 'DGIS', 'HOT', 'ESAT'];
|
const ENABLED: Array<keyof ITileMaps> = ['BLANK', 'DEFAULT', 'DGIS', 'HOT', 'ESAT', 'CACHE'];
|
||||||
|
|
||||||
export const DEFAULT_PROVIDER: keyof ITileMaps = ENABLED[0];
|
export const DEFAULT_PROVIDER: keyof ITileMaps = ENABLED[0];
|
||||||
export const PROVIDERS: Partial<ITileMaps> = ENABLED.reduce((obj, provider) => ({
|
export const PROVIDERS: Partial<ITileMaps> = ENABLED.reduce((obj, provider) => ({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue