From 14ad34ca9a0ecfada16825ab37247cafddcd0625 Mon Sep 17 00:00:00 2001 From: itskovacs Date: Tue, 4 Nov 2025 21:13:16 +0100 Subject: [PATCH] :lipstick: Use fixed pixel for mobile marker offset view --- src/src/app/components/dashboard/dashboard.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/src/app/components/dashboard/dashboard.component.ts b/src/src/app/components/dashboard/dashboard.component.ts index 15ef26e..dc9d608 100644 --- a/src/src/app/components/dashboard/dashboard.component.ts +++ b/src/src/app/components/dashboard/dashboard.component.ts @@ -259,7 +259,11 @@ export class DashboardComponent implements OnInit, AfterViewInit { this.selectedPlace = { ...place }; let toView = { ...e.latlng }; - if ('ontouchstart' in window) toView.lat = toView.lat - 0.0175; + if ('ontouchstart' in window) { + const pixelPoint = this.map!.latLngToContainerPoint(e.latlng); + pixelPoint.y += 75; + toView = this.map!.containerPointToLatLng(pixelPoint); + } marker.closeTooltip(); this.map?.setView(toView);