Class AnimatedPointFeature
A point feature that smoothly interpolates its position between two geographic locations.
Animation settings (duration, easing, and distance threshold) are specified in the constructor,
allowing individual features within the same layer to have different animation behaviors.
Inheritance
AnimatedPointFeature
Assembly: Mapsui.dll
Syntax
public class AnimatedPointFeature : PointFeature, IFeature, ICloneable, IAnimatedFeature
Constructors
|
Edit this page
View Source
AnimatedPointFeature(AnimatedPointFeature)
Declaration
public AnimatedPointFeature(AnimatedPointFeature animatedPointFeature)
Parameters
|
Edit this page
View Source
AnimatedPointFeature(double, double, int, Easing?, double)
Declaration
public AnimatedPointFeature(double x, double y, int animationDuration = 1000, Easing? easing = null, double distanceThreshold = 1.7976931348623157E+308)
Parameters
Properties
|
Edit this page
View Source
End
Declaration
public MPoint End { get; set; }
Property Value
|
Edit this page
View Source
Start
Declaration
public MPoint Start { get; set; }
Property Value
Methods
|
Edit this page
View Source
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone()
Returns
| Type |
Description |
| object |
A new object that is a copy of this instance.
|
Overrides
|
Edit this page
View Source
SetAnimationTarget(MPoint)
Declaration
public void SetAnimationTarget(MPoint target)
Parameters
| Type |
Name |
Description |
| MPoint |
target |
|
|
Edit this page
View Source
UpdateAnimation()
Advances the feature's interpolated position based on elapsed time.
Declaration
public bool UpdateAnimation()
Returns
| Type |
Description |
| bool |
true if the animation is still running and a render update is needed;
false if the animation has completed.
|
|
Edit this page
View Source
UpdateAnimation(int, Easing, double)
Updates the animation using explicitly supplied settings.
Although still supported, prefer the parameterless UpdateAnimation()
and supply animation settings through the constructor instead. When using this overload,
the supplied arguments take precedence over any values passed to the constructor.
Declaration
public bool UpdateAnimation(int duration, Easing easing, double distanceThreshold)
Parameters
Returns
Implements
Extension Methods