Update MapGraticule.cs

This commit is contained in:
ClemensFischer 2022-11-29 23:50:06 +01:00
parent e6dd919538
commit c3e1ffd685

View file

@ -114,9 +114,10 @@ namespace MapControl
{
if (!rotation.HasValue)
{
location.Longitude += 10d / PixelPerLongitudeDegree(location);
var pos = ParentMap.LocationToView(location);
// get rotation from second location with same latitude
//
var pos = ParentMap.LocationToView(
new Location(location.Latitude, location.Longitude + 10d / PixelPerLongitudeDegree(location)));
if (MapProjection.IsValid(pos))
{