mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MapGraticule.cs
This commit is contained in:
parent
e6dd919538
commit
c3e1ffd685
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue