Skip to content

Commit

Permalink
point sprites at v4 [#238]
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Oct 10, 2024
1 parent 3f6eef6 commit e2ff23d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/MapViewComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion app/src/VisualTestsComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion styles/src/generate_styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
Expand Down

0 comments on commit e2ff23d

Please sign in to comment.