Skip to content
Merged
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
6 changes: 3 additions & 3 deletions src/common/dom/setup-leaflet-map.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Map } from "leaflet";
import type { Map } from "leaflet";

// Sets up a Leaflet map on the provided DOM element
export type LeafletModuleType = typeof import("leaflet");
Expand All @@ -13,9 +13,9 @@ export const setupLeafletMap = async (
throw new Error("Cannot setup Leaflet map on disconnected element");
}
// eslint-disable-next-line
const Leaflet = (await import(
const Leaflet = ((await import(
/* webpackChunkName: "leaflet" */ "leaflet"
)) as LeafletModuleType;
)) as any).default as LeafletModuleType;
Leaflet.Icon.Default.imagePath = "/static/images/leaflet/images/";

if (draw) {
Expand Down