diff --git a/src/public/app/types-assets.d.ts b/src/public/app/types-assets.d.ts new file mode 100644 index 000000000..157ee60b9 --- /dev/null +++ b/src/public/app/types-assets.d.ts @@ -0,0 +1,4 @@ +declare module "*.png" { + var path: string; + export default path; +} diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts index 8e2f4b737..5d004632f 100644 --- a/src/public/app/widgets/type_widgets/geo_map.ts +++ b/src/public/app/widgets/type_widgets/geo_map.ts @@ -8,12 +8,14 @@ import dialogService from "../../services/dialog.js"; import type { EventData } from "../../components/app_context.js"; import { t } from "../../services/i18n.js"; import attributes from "../../services/attributes.js"; -import asset_path from "../../../../services/asset_path.js"; import openContextMenu from "./geo_map_context_menu.js"; import link from "../../services/link.js"; import note_tooltip from "../../services/note_tooltip.js"; import appContext from "../../components/app_context.js"; +import markerIcon from "leaflet/dist/images/marker-icon.png"; +import markerIconShadow from "leaflet/dist/images/marker-shadow.png"; + const TPL = /*html*/`\