From 6b906a91d794dc336e1a271e6609c133da63e5b4 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 21 Jan 2025 19:33:12 +0200 Subject: [PATCH] feat(geomap): add labels to markers --- .../app/widgets/type_widgets/geo_map.ts | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts index e2321b4c4..9e13f5925 100644 --- a/src/public/app/widgets/type_widgets/geo_map.ts +++ b/src/public/app/widgets/type_widgets/geo_map.ts @@ -10,8 +10,6 @@ import { t } from "../../services/i18n.js"; import attributes from "../../services/attributes.js"; import asset_path from "../../../../services/asset_path.js"; -const ICON_WIDTH = 30; - const TPL = `\
`; @@ -163,6 +179,7 @@ export default class GeoMapTypeWidget extends TypeWidget { + ${childNote.title} `, iconSize: [ 25, 41 ], iconAnchor: [ 12, 41 ]