Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove mapbox scheme urls #525

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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