mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MapPanel.cs
This commit is contained in:
parent
263a1b7188
commit
1c1a301361
|
|
@ -207,8 +207,8 @@ namespace MapControl
|
||||||
position.HasValue &&
|
position.HasValue &&
|
||||||
IsOutsideViewport(position.Value))
|
IsOutsideViewport(position.Value))
|
||||||
{
|
{
|
||||||
location = new Location(location.Latitude, parentMap.ConstrainedLongitude(location.Longitude));
|
position = parentMap.LocationToView(
|
||||||
position = parentMap.LocationToView(location);
|
new Location(location.Latitude, parentMap.ConstrainedLongitude(location.Longitude)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return position;
|
return position;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue