From e2ff23dd271affc93e1898023ada66e074ee35f8 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Thu, 10 Oct 2024 18:47:40 +0800 Subject: [PATCH] point sprites at v4 [#238] --- app/src/MapViewComponent.tsx | 2 +- app/src/VisualTestsComponent.tsx | 2 +- styles/src/generate_styles.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/MapViewComponent.tsx b/app/src/MapViewComponent.tsx index 3d509b1c..017e996f 100644 --- a/app/src/MapViewComponent.tsx +++ b/app/src/MapViewComponent.tsx @@ -96,7 +96,7 @@ function getMaplibreStyle( if (localSprites) { style.sprite = `${location.protocol}//${location.host}/${theme}`; } else { - style.sprite = `https://protomaps.github.io/basemaps-assets/sprites/v3/${theme}`; + style.sprite = `https://protomaps.github.io/basemaps-assets/sprites/v4/${theme}`; } style.glyphs = diff --git a/app/src/VisualTestsComponent.tsx b/app/src/VisualTestsComponent.tsx index 6de6fc36..cb44ae0f 100644 --- a/app/src/VisualTestsComponent.tsx +++ b/app/src/VisualTestsComponent.tsx @@ -55,7 +55,7 @@ const createMap = ( zoom: zoom, glyphs: "https://protomaps.github.io/basemaps-assets/fonts/{fontstack}/{range}.pbf", - sprite: "https://protomaps.github.io/basemaps-assets/sprites/v3/light", + sprite: "https://protomaps.github.io/basemaps-assets/sprites/v4/light", sources: { protomaps: { type: "vector", diff --git a/styles/src/generate_styles.ts b/styles/src/generate_styles.ts index 3fd8ea41..b3607815 100644 --- a/styles/src/generate_styles.ts +++ b/styles/src/generate_styles.ts @@ -30,7 +30,7 @@ for (const theme of ["light", "dark", "white", "grayscale", "black"]) { }, }, layers: layers, - sprite: `https://protomaps.github.io/basemaps-assets/sprites/v3/${theme}`, + sprite: `https://protomaps.github.io/basemaps-assets/sprites/v4/${theme}`, glyphs: "https://protomaps.github.io/basemaps-assets/fonts/{fontstack}/{range}.pbf", };