diff --git a/__tests__/components/Style.test.js b/__tests__/components/Style.test.js index 72beb79ba..54a789433 100644 --- a/__tests__/components/Style.test.js +++ b/__tests__/components/Style.test.js @@ -19,7 +19,7 @@ describe("Style", () => { test("renders vectory source correctly", () => { const vectorSource = { type: "vector", - url: "mapbox://mapbox.660ui7x6", + url: "https://demotiles.maplibre.org/tiles/tiles.json", tiles: ["http://host1", "http://host2"], minzoom: 1, maxzoom: 22, @@ -50,7 +50,7 @@ describe("Style", () => { test("renders raster source correctly", () => { const rasterSource = { type: "raster", - url: "mapbox://mapbox.660ui7x6", + url: "https://demotiles.maplibre.org/tiles/tiles.json", tiles: ["http://host1", "http://host2"], minzoom: 1, maxzoom: 22, diff --git a/__tests__/modules/offline/OfflineCreatePackOptions.test.js b/__tests__/modules/offline/OfflineCreatePackOptions.test.js index f533bdf23..f0c01f6d5 100644 --- a/__tests__/modules/offline/OfflineCreatePackOptions.test.js +++ b/__tests__/modules/offline/OfflineCreatePackOptions.test.js @@ -5,7 +5,7 @@ import OfflineCreatePackOptions from "../../../src/modules/offline/OfflineCreate describe("OfflineCreatePackOptions", () => { const options = { name: "test", - styleURL: "mapbox://fake-style-url", + styleURL: "https://demotiles.maplibre.org/tiles/tiles.json", bounds: [ [0, 1], [2, 3], diff --git a/__tests__/modules/offline/offlineManager.test.js b/__tests__/modules/offline/offlineManager.test.js index a48205980..3ad605801 100644 --- a/__tests__/modules/offline/offlineManager.test.js +++ b/__tests__/modules/offline/offlineManager.test.js @@ -6,7 +6,7 @@ import { OfflineModuleEventEmitter } from "../../../src/modules/offline/offlineM describe("offlineManager", () => { const packOptions = { name: "test", - styleURL: "mapbox://fake-style-url", + styleURL: "https://demotiles.maplibre.org/style.json", bounds: [ [0, 1], [2, 3], diff --git a/docs/docs.json b/docs/docs.json index 95f3cb83f..5a1a79982 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -5065,7 +5065,7 @@ } ], "examples": [ - "const progressListener = (offlineRegion, status) => console.log(offlineRegion, status);\nconst errorListener = (offlineRegion, err) => console.log(offlineRegion, err);\n\nawait MapLibreGL.offlineManager.createPack({\n name: 'offlinePack',\n styleURL: 'mapbox://...',\n minZoom: 14,\n maxZoom: 20,\n bounds: [[neLng, neLat], [swLng, swLat]]\n}, progressListener, errorListener)" + "const progressListener = (offlineRegion, status) => console.log(offlineRegion, status);\nconst errorListener = (offlineRegion, err) => console.log(offlineRegion, err);\n\nawait MapLibreGL.offlineManager.createPack({\n name: 'offlinePack',\n styleURL: 'https://demotiles.maplibre.org/tiles/tiles.json',\n minZoom: 14,\n maxZoom: 20,\n bounds: [[neLng, neLat], [swLng, swLat]]\n}, progressListener, errorListener)" ], "returns": { "description": "", diff --git a/docs/offlineManager.md b/docs/offlineManager.md index dd4ac1da8..4eeac181e 100644 --- a/docs/offlineManager.md +++ b/docs/offlineManager.md @@ -24,7 +24,7 @@ const errorListener = (offlineRegion, err) => console.log(offlineRegion, err); await MapLibreGL.offlineManager.createPack({ name: 'offlinePack', - styleURL: 'mapbox://...', + styleURL: 'https://demotiles.maplibre.org/tiles/tiles.json', minZoom: 14, maxZoom: 20, bounds: [[neLng, neLat], [swLng, swLat]] diff --git a/src/modules/offline/offlineManager.ts b/src/modules/offline/offlineManager.ts index 30b474f5a..0daf5ac7e 100644 --- a/src/modules/offline/offlineManager.ts +++ b/src/modules/offline/offlineManager.ts @@ -83,7 +83,7 @@ class OfflineManager { * * await MapLibreGL.offlineManager.createPack({ * name: 'offlinePack', - * styleURL: 'mapbox://...', + * styleURL: 'https://demotiles.maplibre.org/tiles/tiles.json', * minZoom: 14, * maxZoom: 20, * bounds: [[neLng, neLat], [swLng, swLat]]