Class CIMSymbolAnimationMoveAlongLine

Namespace
ESRI.ArcGIS.CIM
Assembly
ESRI.Server.CIM.dll

Represents the move along line animation.

public class CIMSymbolAnimationMoveAlongLine : CIMSymbolAnimation
Inheritance
CIMSymbolAnimationMoveAlongLine
Inherited Members

Remarks

Dynamically animates marker(s) along a line. The animation can be defined by either distance along the line or speed. The initial marker placement for the animation is determined by the MarkerPlacement property on the symbol layer, and the animation will move the marker(s) from that initial placement along the line.

Constructors

CIMSymbolAnimationMoveAlongLine()

public CIMSymbolAnimationMoveAlongLine()

Properties

Continuous

Gets or sets a value indicating whether the animation will loop continuously when Speed is defined. If true, once the marker reaches the end of the line it will jump back to the starting placement and repeat the animation continuously until the duration is reached.

public bool Continuous { get; set; }

Property Value

bool

DistanceAlong

Gets or sets the distance as a percentage along the line to which the marker will animate. 0 corresponds to the starting placement of the marker, and 100 corresponds to a full movement along the line. This is only used if MovementType is set to Distance.

public double DistanceAlong { get; set; }

Property Value

double

MovementType

Gets or sets the movement type, indicating whether the marker animates along the line by distance or by speed.

public MovementAlongLineType MovementType { get; set; }

Property Value

MovementAlongLineType

Speed

Gets or sets the speed at which the marker will animate along the line, in units of the line's unit per second. When the MovementType is set to Distance, the marker will move along the line at this speed until it reaches the DistanceAlong value. When the MovementType is set to Speed, the marker will move along the line at this speed, and DistanceAlong is ignored.

public double Speed { get; set; }

Property Value

double

Methods

FromJson(string, JsonDeserializationSettings)

Reconstructs the CIMSymbolAnimationMoveAlongLine with a specified state from a JSON encoding.

public static CIMSymbolAnimationMoveAlongLine FromJson(string json, JsonDeserializationSettings settings = null)

Parameters

json string

The JSON string containing the CIMSymbolAnimationMoveAlongLine state.

settings JsonDeserializationSettings

The JSON deserialization settings.

Returns

CIMSymbolAnimationMoveAlongLine

ToJson(JsonSerializationSettings)

Creates a JSON encoding of the CIMSymbolAnimationMoveAlongLine and its current state.

public override string ToJson(JsonSerializationSettings settings = null)

Parameters

settings JsonSerializationSettings

The JSON serialization settings.

Returns

string