forked from MapComplete/MapComplete
Split summary-server constant
This commit is contained in:
parent
d434ed0492
commit
8f5be4f742
4 changed files with 5 additions and 3 deletions
|
@ -28,7 +28,7 @@ async function timeout(timeMS: number): Promise<{ layers: string[] }> {
|
|||
|
||||
async function getAvailableLayers(): Promise<Set<string>> {
|
||||
try {
|
||||
const host = new URL(Constants.VectorTileServer).host
|
||||
const host = new URL(Constants.SummaryServer).host
|
||||
const status: { layers: string[] } = await Promise.any([
|
||||
Utils.downloadJson<{layers}>("https://" + host + "/summary/status.json"),
|
||||
timeout(2500),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue