fix(geo_map): fix leaflet asset copying

necessary, now that we moved leaflet to devDeps
This commit is contained in:
Panagiotis Papadopoulos 2025-04-03 22:35:09 +02:00
parent 0b82489ea0
commit b8af8b4709
2 changed files with 7 additions and 2 deletions

View File

@ -260,8 +260,8 @@ export default class GeoMapTypeWidget extends TypeWidget {
#buildIcon(bxIconClass: string, colorClass: string, title: string) {
return this.L.divIcon({
html: `\
<img class="icon" src="${asset_path}/node_modules/leaflet/dist/images/marker-icon.png" />
<img class="icon-shadow" src="${asset_path}/node_modules/leaflet/dist/images/marker-shadow.png" />
<img class="icon" src="${asset_path}/app-dist/leaflet/images/marker-icon.png" />
<img class="icon-shadow" src="${asset_path}/app-dist/leaflet/images/marker-shadow.png" />
<span class="bx ${bxIconClass} ${colorClass}"></span>
<span class="title-label">${title}</span>`,
iconSize: [25, 41],

View File

@ -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/"
}
]
})