From 1c1a301361021fc1c3016c464cd9f3b5cfec6e74 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Thu, 14 Mar 2024 19:40:02 +0100 Subject: [PATCH] Update MapPanel.cs --- MapControl/Shared/MapPanel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MapControl/Shared/MapPanel.cs b/MapControl/Shared/MapPanel.cs index f2fe7e73..f933c00b 100644 --- a/MapControl/Shared/MapPanel.cs +++ b/MapControl/Shared/MapPanel.cs @@ -207,8 +207,8 @@ namespace MapControl position.HasValue && IsOutsideViewport(position.Value)) { - location = new Location(location.Latitude, parentMap.ConstrainedLongitude(location.Longitude)); - position = parentMap.LocationToView(location); + position = parentMap.LocationToView( + new Location(location.Latitude, parentMap.ConstrainedLongitude(location.Longitude))); } return position;