mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-12 11:40:15 +01:00
Update GeoApiProjection.cs
This commit is contained in:
parent
5ecdb9bc7b
commit
17452582b4
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue