Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(geomap): note preview on tooltip
Elian Doranac262228f0b4
diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.tsindex d5157301d5..2f625d738b 100644--- a/src/public/app/widgets/type_widgets/geo_map.ts+++ b/src/public/app/widgets/type_widgets/geo_map.ts@@ -178,11 +178,12 @@ export default class GeoMapTypeWidget extends TypeWidget {const [ lat, lng ] = latLng.split(",", 2).map((el) => parseFloat(el));const icon = 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" />- <span class="bx ${childNote.getIcon()}"></span>- <span class="title-label">${childNote.title}</span>- `,+ <a data-href="#${childNote.noteId}">+ <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" />+ <span class="bx ${childNote.getIcon()}"></span>+ <span class="title-label">${childNote.title}</span>+ </a>`,iconSize: [ 25, 41 ],iconAnchor: [ 12, 41 ]})@@ -194,7 +195,6 @@ export default class GeoMapTypeWidget extends TypeWidget {autoPanSpeed: 5,}).addTo(map)- .bindPopup(childNote.title).on("moveend", e => {this.moveMarker(childNote.noteId, (e.target as Marker).getLatLng());});