Fix linter errors

This commit is contained in:
Pirmin Kalberer
2025-01-22 21:31:06 +01:00
parent 899f084464
commit 8a80dfcc63
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ describe("modals", () => {
});
it("add new pmtiles source", () => {
let sourceId = "pmtilestest";
const sourceId = "pmtilestest";
when.setValue("modal:sources.add.source_id", sourceId);
when.select("modal:sources.add.source_type", "pmtiles_vector");
when.setValue("modal:sources.add.source_url", "https://data.source.coop/protomaps/openstreetmap/v4.pmtiles");

View File

@@ -149,7 +149,7 @@ class MapMaplibreGlInternal extends React.Component<MapMaplibreGlInternalProps,
localIdeographFontFamily: false
} satisfies MapOptions;
let protocol = new Protocol({metadata: true});
const protocol = new Protocol({metadata: true});
MapLibreGl.addProtocol("pmtiles",protocol.tile);
const map = new MapLibreGl.Map(mapOpts);