Skip to content

Build your personal knowledge base with Trilium Notes

fix(geomap): display again note tooltip

Elian Dorane06db0038f3a
diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts
index 160e37e474..299003e221 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 = `\
<div class="note-detail-geo-map note-detail-printable">
@@ -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;
}
}