Class AnimatedPointLayer
Inheritance
AnimatedPointLayer
Assembly: Mapsui.dll
Syntax
public class AnimatedPointLayer : BaseLayer, ILayer, IAnimatable, INotifyPropertyChanged, IDisposable, IAsyncDataFetcher, ILayerDataSource<IProvider>, IModifyFeatureLayer
Constructors
|
Edit this page
View Source
AnimatedPointLayer(IProvider)
Declaration
public AnimatedPointLayer(IProvider dataSource)
Parameters
Properties
|
Edit this page
View Source
AnimationDuration
The period of which the animaton should move from the previous position to the new position.
The default is 1000 milliseconds.
Declaration
public int AnimationDuration { get; set; }
Property Value
|
Edit this page
View Source
DataSource
Declaration
public IProvider? DataSource { get; }
Property Value
|
Edit this page
View Source
DistanceThreshold
When the distance between the current and the previous position is larger
than the DistanceThreshold it will not be animated.
The default is Double.MaxValue
Declaration
public double DistanceThreshold { get; set; }
Property Value
|
Edit this page
View Source
Easing
The easing function to use for the animation. The default is Easing.CubicOut.
Declaration
public Easing Easing { get; set; }
Property Value
|
Edit this page
View Source
Extent
Returns the envelope of all available data in the layer
Declaration
public override MRect? Extent { get; }
Property Value
Overrides
|
Edit this page
View Source
IdField
Declaration
public string IdField { get; set; }
Property Value
Methods
|
Edit this page
View Source
AbortFetch()
Aborts the tile fetches that are in progress. If this method is not called
the threads will terminate naturally. It will just take a little longer.
Declaration
|
Edit this page
View Source
ClearCache()
Declaration
|
Edit this page
View Source
GetFeatures(MRect, double)
Get all features in a given MRect for a given resolution
Declaration
public override IEnumerable<IFeature> GetFeatures(MRect extent, double resolution)
Parameters
Type |
Name |
Description |
MRect |
extent |
Bounding box
|
double |
resolution |
Resolution of viewport
|
Returns
Overrides
|
Edit this page
View Source
RefreshData(FetchInfo)
Indicates that there has been a change in the view of the map
Declaration
public void RefreshData(FetchInfo fetchInfo)
Parameters
Type |
Name |
Description |
FetchInfo |
fetchInfo |
FetchInfo
|
|
Edit this page
View Source
SetAnimationTarget(IEnumerable<PointFeature>)
Declaration
public void SetAnimationTarget(IEnumerable<PointFeature> targets)
Parameters
|
Edit this page
View Source
UpdateAnimations()
Declaration
public override bool UpdateAnimations()
Returns
Type |
Description |
bool |
Returns true if animations are running and a graphics update is needed.
|
Overrides
|
Edit this page
View Source
UpdateDataAsync()
Declaration
public Task UpdateDataAsync()
Returns
Implements
Extension Methods