fix(geomap): display again note tooltip

This commit is contained in:
Elian Doran 2025-01-22 21:49:23 +02:00
parent 9b1279ce14
commit e06db0038f
No known key found for this signature in database

View File

@ -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;
}
}