Skip to content

Commit

Permalink
Update map style version id
Browse files Browse the repository at this point in the history
  • Loading branch information
willemarcel committed Nov 14, 2024
1 parent 75012f8 commit 71c44b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/map/globe-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ export function GlobeMap({
useEffect(() => {
const fetchData = async () => {
try {
// We need to update this variable each time we have a new version of the mapbox map style published
const mapStyleVersion = "6914ry1z9mxpu0srgeii55c8s"
const response = await fetch(
`https://api.mapbox.com/styles/v1/${mapStyleID}/48lhibiqllsww17zqo5nw6pga/[email protected]?access_token=${MAPBOX_TOKEN}`,
`https://api.mapbox.com/styles/v1/${mapStyleID}/${mapStyleVersion}/[email protected]?access_token=${MAPBOX_TOKEN}`,
{
method: "GET",
headers: {
Expand Down

0 comments on commit 71c44b3

Please sign in to comment.