mirror of
https://github.com/maputnik/editor.git
synced 2026-08-24 14:07:33 +00:00
Fix linter errors
This commit is contained in:
@@ -84,7 +84,7 @@ describe("modals", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("add new pmtiles source", () => {
|
it("add new pmtiles source", () => {
|
||||||
let sourceId = "pmtilestest";
|
const sourceId = "pmtilestest";
|
||||||
when.setValue("modal:sources.add.source_id", sourceId);
|
when.setValue("modal:sources.add.source_id", sourceId);
|
||||||
when.select("modal:sources.add.source_type", "pmtiles_vector");
|
when.select("modal:sources.add.source_type", "pmtiles_vector");
|
||||||
when.setValue("modal:sources.add.source_url", "https://data.source.coop/protomaps/openstreetmap/v4.pmtiles");
|
when.setValue("modal:sources.add.source_url", "https://data.source.coop/protomaps/openstreetmap/v4.pmtiles");
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ class MapMaplibreGlInternal extends React.Component<MapMaplibreGlInternalProps,
|
|||||||
localIdeographFontFamily: false
|
localIdeographFontFamily: false
|
||||||
} satisfies MapOptions;
|
} satisfies MapOptions;
|
||||||
|
|
||||||
let protocol = new Protocol({metadata: true});
|
const protocol = new Protocol({metadata: true});
|
||||||
MapLibreGl.addProtocol("pmtiles",protocol.tile);
|
MapLibreGl.addProtocol("pmtiles",protocol.tile);
|
||||||
const map = new MapLibreGl.Map(mapOpts);
|
const map = new MapLibreGl.Map(mapOpts);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user