mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
MapPanel, MapPath location coercion
This commit is contained in:
parent
27729bf06c
commit
5a3e711171
2 changed files with 3 additions and 9 deletions
|
|
@ -197,7 +197,7 @@ namespace MapControl
|
|||
var coercedPosition = parentMap.LocationToView(
|
||||
new Location(location.Latitude, parentMap.CoerceLongitude(location.Longitude)));
|
||||
|
||||
if (coercedPosition.HasValue && parentMap.InsideViewport(coercedPosition.Value))
|
||||
if (coercedPosition.HasValue)
|
||||
{
|
||||
position = coercedPosition;
|
||||
}
|
||||
|
|
@ -234,7 +234,7 @@ namespace MapControl
|
|||
var coercedPosition = parentMap.LocationToView(
|
||||
new Location(location.Latitude, parentMap.CoerceLongitude(location.Longitude)));
|
||||
|
||||
if (coercedPosition.HasValue && parentMap.InsideViewport(coercedPosition.Value))
|
||||
if (coercedPosition.HasValue)
|
||||
{
|
||||
position = coercedPosition.Value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue