mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Reset transform center before Center animation
This commit is contained in:
parent
fac62cd1f7
commit
c49095ef8c
8 changed files with 51 additions and 26 deletions
|
|
@ -236,7 +236,7 @@ namespace MapControl
|
|||
IsOutsideViewport(position.Value))
|
||||
{
|
||||
position = parentMap.LocationToView(
|
||||
new Location(location.Latitude, parentMap.ConstrainedLongitude(location.Longitude)));
|
||||
new Location(location.Latitude, parentMap.CoerceLongitude(location.Longitude)));
|
||||
}
|
||||
|
||||
return position;
|
||||
|
|
@ -267,7 +267,7 @@ namespace MapControl
|
|||
if (location != null)
|
||||
{
|
||||
var pos = parentMap.LocationToView(
|
||||
new Location(location.Latitude, parentMap.ConstrainedLongitude(location.Longitude)));
|
||||
new Location(location.Latitude, parentMap.CoerceLongitude(location.Longitude)));
|
||||
|
||||
if (pos.HasValue)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue