From ac262228f0b4e7450996f794833a7a475e985d53 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 21 Jan 2025 22:10:20 +0200 Subject: [PATCH] feat(geomap): note preview on tooltip --- src/public/app/widgets/type_widgets/geo_map.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts index d5157301d..2f625d738 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: `\ - - - - ${childNote.title} - `, + + + + + ${childNote.title} + `, 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()); });