814/remove mapbox references (#816)

Fixes #814

* fix: remove outdated references to mapbox
* docs: fix references in readme
* chore: fix mapbox references in tests
* chore: fix mapbox references in stories, webpack config
* chore: remove empty array
This commit is contained in:
Kevin Schaul
2023-08-28 21:17:49 -05:00
committed by GitHub
parent a99cbc00ba
commit 3727c9ad5e
31 changed files with 82 additions and 125 deletions

View File

@@ -3,7 +3,7 @@
"version": 8,
"name": "Test Style",
"metadata": {
"maputnik:renderer": "mbgljs"
"maputnik:renderer": "mlgljs"
},
"sources": {},
"glyphs": "https://example.local/fonts/{fontstack}/{range}.pbf",

View File

@@ -3,7 +3,7 @@
"version": 8,
"name": "Test Style",
"metadata": {
"maputnik:renderer": "mbgljs"
"maputnik:renderer": "mlgljs"
},
"sources": {},
"glyphs": "https://example.local/fonts/{fontstack}/{range}.pbf",

View File

@@ -45,7 +45,7 @@ describe("skip links", function() {
assert(await elem.isFocused());
await elem.click();
const targetEl = await $(".mapboxgl-canvas");
const targetEl = await $(".maplibregl-canvas");
assert(await targetEl.isFocused());
});
});

View File

@@ -44,7 +44,7 @@ describe("keyboard", function() {
it("'m' should focus map", async function() {
await browser.keys(["m"]);
assert(await (await $(".mapboxgl-canvas")).isFocused());
assert(await (await $(".maplibregl-canvas")).isFocused());
});
it("'!' should show debug modal", async function() {

View File

@@ -13,8 +13,8 @@ describe("map", function() {
await browser.waitUntil(async function () {
return (
await browser.isVisible(".mapboxgl-ctrl-zoom")
&& await browser.getText(".mapboxgl-ctrl-zoom") === "Zoom level: "+(zoomLevel)
await browser.isVisible(".maplibregl-ctrl-zoom")
&& await browser.getText(".maplibregl-ctrl-zoom") === "Zoom level: "+(zoomLevel)
);
}, 10*1000)
})
@@ -25,9 +25,9 @@ describe("map", function() {
])+"#"+zoomLevel+"/41.3805/2.1635");
await browser.alertAccept();
await browser.click(".mapboxgl-ctrl-zoom-in")
await browser.click(".maplibregl-ctrl-zoom-in")
await browser.waitUntil(async function () {
var text = await browser.getText(".mapboxgl-ctrl-zoom")
var text = await browser.getText(".maplibregl-ctrl-zoom")
return text === "Zoom level: "+(zoomLevel+1);
}, 10*1000)
})

View File

@@ -184,19 +184,6 @@ describe("modals", function() {
assert.equal(styleObj.glyphs, glyphsUrl);
})
it("mapbox access token", async function() {
var apiKey = "testing123";
await browser.setValueSafe(wd.$("modal:settings.maputnik:mapbox_access_token"), apiKey);
const elem = await $(wd.$("modal:settings.name"));
await elem.click();
await browser.flushReactUpdates();
var styleObj = await helper.getStyleStore(browser);
await browser.waitUntil(function() {
return styleObj.metadata["maputnik:mapbox_access_token"] == apiKey;
})
})
it("maptiler access token", async function() {
var apiKey = "testing123";
await browser.setValueSafe(wd.$("modal:settings.maputnik:openmaptiles_access_token"), apiKey);

View File

@@ -20,7 +20,7 @@ function buildStyle(opts) {
"version": 8,
"name": "Test Style",
"metadata": {
"maputnik:renderer": "mbgljs"
"maputnik:renderer": "mlgljs"
},
"sources": opts.sources,
"glyphs": "https://example.local/fonts/{fontstack}/{range}.pbf",