From e06db0038f3ad9358cf0cf92939dbdb220a4b8a6 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 22 Jan 2025 21:49:23 +0200 Subject: [PATCH] fix(geomap): display again note tooltip --- src/public/app/widgets/type_widgets/geo_map.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts index 160e37e47..299003e22 100644 --- a/src/public/app/widgets/type_widgets/geo_map.ts +++ b/src/public/app/widgets/type_widgets/geo_map.ts @@ -11,6 +11,7 @@ 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"; const TPL = `\
@@ -203,6 +204,13 @@ export default class GeoMapTypeWidget extends TypeWidget { openContextMenu(childNote.noteId, e.originalEvent); }); + const el = marker.getElement(); + if (el) { + const $el = $(el); + $el.attr("data-href", `#${childNote.noteId}`); + note_tooltip.setupElementTooltip($($el)); + } + this.currentMarkerData[childNote.noteId] = marker; } }