From b8af8b4709e5398a1bf317e60560cb08e5facbca Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Thu, 3 Apr 2025 22:35:09 +0200 Subject: [PATCH] fix(geo_map): fix leaflet asset copying necessary, now that we moved leaflet to devDeps --- src/public/app/widgets/type_widgets/geo_map.ts | 4 ++-- webpack.config.ts | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts index dbcebdeb3..8e2f4b737 100644 --- a/src/public/app/widgets/type_widgets/geo_map.ts +++ b/src/public/app/widgets/type_widgets/geo_map.ts @@ -260,8 +260,8 @@ export default class GeoMapTypeWidget extends TypeWidget { #buildIcon(bxIconClass: string, colorClass: string, title: string) { return this.L.divIcon({ html: `\ - - + + ${title}`, iconSize: [25, 41], diff --git a/webpack.config.ts b/webpack.config.ts index bfafd6036..d97598dd6 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -34,6 +34,11 @@ const config: Configuration = { context: "node_modules/@excalidraw/excalidraw/dist/prod/fonts/", from: "**/*", to: "excalidraw/fonts/" + }, + { + context: "node_modules/leaflet/dist/images/", + from: "**/*", + to: "leaflet/images/" } ] })