From 016a9e4a99c3282e5a40be80282d59733be5a5ff Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 21 Jan 2025 19:01:22 +0200 Subject: [PATCH] fix(geomap): pixel perfect marker positioning --- src/public/app/widgets/type_widgets/geo_map.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts index 39f0a1beb..4d2693336 100644 --- a/src/public/app/widgets/type_widgets/geo_map.ts +++ b/src/public/app/widgets/type_widgets/geo_map.ts @@ -156,15 +156,15 @@ export default class GeoMapTypeWidget extends TypeWidget { `, - iconSize: [ 25, 42 ], - iconAnchor: [ 7, 42 ] + iconSize: [ 25, 41 ], + iconAnchor: [ 12, 41 ] }) const marker = L.marker(L.latLng(lat, lng), { icon, draggable: true, autoPan: true, - autoPanSpeed: 5 + autoPanSpeed: 5, }) .addTo(map) .bindPopup(childNote.title)