Skip to content

Commit

Permalink
chore: remove mapbox scheme urls (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian authored Dec 2, 2024
1 parent 4d982af commit a22da62
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions __tests__/components/Style.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion __tests__/modules/offline/OfflineCreatePackOptions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion __tests__/modules/offline/offlineManager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down
2 changes: 1 addition & 1 deletion docs/offlineManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
2 changes: 1 addition & 1 deletion src/modules/offline/offlineManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down

0 comments on commit a22da62

Please sign in to comment.