mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +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
|
|
@ -129,6 +129,8 @@ namespace MapControl
|
|||
{
|
||||
if (!internalPropertyChange && !targetCenter.Equals(Center))
|
||||
{
|
||||
ResetTransformCenter();
|
||||
|
||||
if (centerAnimation != null)
|
||||
{
|
||||
centerAnimation.Completed -= CenterAnimationCompleted;
|
||||
|
|
@ -136,7 +138,7 @@ namespace MapControl
|
|||
|
||||
centerAnimation = new LocationAnimation
|
||||
{
|
||||
To = new Location(targetCenter.Latitude, ConstrainedLongitude(targetCenter.Longitude)),
|
||||
To = new Location(targetCenter.Latitude, CoerceLongitude(targetCenter.Longitude)),
|
||||
Duration = AnimationDuration,
|
||||
EasingFunction = AnimationEasingFunction
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue