From 16d7c21ffa07b9834d40d3b91dd2ed13a8f65d53 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Thu, 8 Dec 2022 20:32:16 +0100 Subject: [PATCH] Update GeoImage.cs --- MapControl/Shared/GeoImage.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MapControl/Shared/GeoImage.cs b/MapControl/Shared/GeoImage.cs index c544178f..f8f43f85 100644 --- a/MapControl/Shared/GeoImage.cs +++ b/MapControl/Shared/GeoImage.cs @@ -102,8 +102,11 @@ namespace MapControl var p1 = transform.Transform(new Point()); var p2 = transform.Transform(new Point(bitmap.PixelWidth, bitmap.PixelHeight)); + var mapRect = new MapRect(p1, p2); - boundingBox = new BoundingBox(p1.Y, p1.X, p2.Y, p2.X); // Y=Latitude, X=Longitude + // TODO: boundingBox = MapProjection.MapRectToBoundingBox(mapRect); + + boundingBox = new BoundingBox(mapRect.YMin, mapRect.XMin, mapRect.YMax, mapRect.XMax); } Content = image;