mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Update MapGraticule.cs
This commit is contained in:
parent
e6dd919538
commit
c3e1ffd685
1 changed files with 4 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue