mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
replaced some providers with cached one
This commit is contained in:
parent
40c589063a
commit
6ad3d9681a
1 changed files with 6 additions and 14 deletions
|
@ -15,8 +15,8 @@ export interface ITileMaps {
|
||||||
YMAP: IProvider,
|
YMAP: IProvider,
|
||||||
SAT: IProvider,
|
SAT: IProvider,
|
||||||
ESAT: IProvider,
|
ESAT: IProvider,
|
||||||
CACHE_OSM: IProvider,
|
// CACHE_OSM: IProvider,
|
||||||
CACHE_CARTO: IProvider,
|
// CACHE_CARTO: IProvider,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,19 +34,10 @@ const TILEMAPS: ITileMaps = {
|
||||||
},
|
},
|
||||||
DEFAULT: {
|
DEFAULT: {
|
||||||
name: 'OpenStreetMap',
|
name: 'OpenStreetMap',
|
||||||
url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
// url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
||||||
range: ['a', 'b', 'c'],
|
|
||||||
},
|
|
||||||
CACHE_OSM: {
|
|
||||||
name: 'Cache Osm',
|
|
||||||
url: 'https://{s}.osm.tile.vault48.org/{z}/{x}/{y}.png',
|
url: 'https://{s}.osm.tile.vault48.org/{z}/{x}/{y}.png',
|
||||||
range: ['a', 'b', 'c'],
|
range: ['a', 'b', 'c'],
|
||||||
},
|
},
|
||||||
CACHE_CARTO: {
|
|
||||||
name: 'Cache Carto',
|
|
||||||
url: 'https://{s}.carto.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',
|
||||||
|
@ -54,7 +45,8 @@ const TILEMAPS: ITileMaps = {
|
||||||
},
|
},
|
||||||
BLANK: {
|
BLANK: {
|
||||||
name: 'Blanque',
|
name: 'Blanque',
|
||||||
url: 'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png',
|
// url: 'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png',
|
||||||
|
url: 'https://{s}.carto.tile.vault48.org/light_all/{z}/{x}/{y}.png',
|
||||||
range: [1, 2, 3, 4],
|
range: [1, 2, 3, 4],
|
||||||
},
|
},
|
||||||
HOT: {
|
HOT: {
|
||||||
|
@ -84,7 +76,7 @@ const TILEMAPS: ITileMaps = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const ENABLED: Array<keyof ITileMaps> = ['BLANK', 'DEFAULT', 'DGIS', 'HOT', 'ESAT', 'CACHE_OSM', 'CACHE_CARTO'];
|
const ENABLED: Array<keyof ITileMaps> = ['BLANK', 'DEFAULT', 'DGIS', 'HOT', 'ESAT'];
|
||||||
|
|
||||||
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