From 17452582b4e26b1059e97b2991277e305289d4e1 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Thu, 8 Jan 2026 11:05:24 +0100 Subject: [PATCH] Update GeoApiProjection.cs --- MapProjections/Shared/GeoApiProjection.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/MapProjections/Shared/GeoApiProjection.cs b/MapProjections/Shared/GeoApiProjection.cs index eed792f8..8cee0b7d 100644 --- a/MapProjections/Shared/GeoApiProjection.cs +++ b/MapProjections/Shared/GeoApiProjection.cs @@ -110,12 +110,7 @@ namespace MapControl.Projections var coordinate = LocationToMapTransform.Transform(new Coordinate(longitude, latitude)); - if (coordinate == null) - { - return null; - } - - return new Point(coordinate.X, coordinate.Y); + return coordinate != null ? new Point(coordinate.X, coordinate.Y) : null; } public override Location MapToLocation(double x, double y)