Search Results for

    Show / Hide Table of Contents

    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
    object
    BaseFeature
    PointFeature
    AnimatedPointFeature
    Implements
    IFeature
    ICloneable
    IAnimatedFeature
    Inherited Members
    PointFeature.Point
    PointFeature.Extent
    PointFeature.CoordinateVisitor(Action<double, double, CoordinateSetter>)
    BaseFeature.Id
    BaseFeature.GenerationId
    BaseFeature.Styles
    BaseFeature.Fields
    BaseFeature.Data
    BaseFeature.this[string]
    BaseFeature.Modified()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Layers.AnimatedLayers
    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
    Type Name Description
    AnimatedPointFeature animatedPointFeature
    | 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
    Type Name Description
    double x
    double y
    int animationDuration
    Easing easing
    double distanceThreshold

    Properties

    | Edit this page View Source

    End

    Declaration
    public MPoint End { get; set; }
    Property Value
    Type Description
    MPoint
    | Edit this page View Source

    Start

    Declaration
    public MPoint Start { get; set; }
    Property Value
    Type Description
    MPoint

    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
    PointFeature.Clone()
    | 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
    Type Name Description
    int duration
    Easing easing
    double distanceThreshold
    Returns
    Type Description
    bool

    Implements

    IFeature
    ICloneable
    IAnimatedFeature

    Extension Methods

    FeatureExtensions.ToDisplayText(IFeature)
    FeatureExtensions.ToStringOfKeyValuePairs(IFeature)
    FeatureExtensions.Copy<T>(T)
    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX