Update MapBase.WPF.cs

This commit is contained in:
ClemensFischer 2024-05-21 21:16:22 +02:00
parent dedf3dd4cf
commit 12b33c5376

View file

@ -140,7 +140,8 @@ namespace MapControl
{
To = new Location(targetCenter.Latitude, CoerceLongitude(targetCenter.Longitude)),
Duration = AnimationDuration,
EasingFunction = AnimationEasingFunction
EasingFunction = AnimationEasingFunction,
FillBehavior = FillBehavior.Stop
};
centerAnimation.Completed += CenterAnimationCompleted;
@ -205,7 +206,8 @@ namespace MapControl
{
To = targetZoomLevel,
Duration = AnimationDuration,
EasingFunction = AnimationEasingFunction
EasingFunction = AnimationEasingFunction,
FillBehavior = FillBehavior.Stop
};
zoomLevelAnimation.Completed += ZoomLevelAnimationCompleted;
@ -265,7 +267,8 @@ namespace MapControl
{
By = delta,
Duration = AnimationDuration,
EasingFunction = AnimationEasingFunction
EasingFunction = AnimationEasingFunction,
FillBehavior = FillBehavior.Stop
};
headingAnimation.Completed += HeadingAnimationCompleted;