A Layer that displays dynamic entity observations from real-time services.
public sealed class DynamicEntityLayer : Layer, INotifyPropertyChanged, ILoadable, ILayerContent, IPopupSource
A dynamic entity layer consumes DynamicEntityObservation objects streamed from a DynamicEntityDataSource. A DynamicEntityDataSource must be passed to the constructor of the layer. The layer manages the display of observations as they are added to or removed from the data source's local cache.
A dynamic entity layer's TrackDisplayProperties allow you to control the display of previous observations by setting a maximum number of observations to show, displaying a line that connects them (track line), and applying renderers to the observations and/or track line.
As with other layers in the ArcGIS Maps SDK, display properties are managed with renderers. In the dynamic entity layer, three renderers are used to control the display observations:
- Renderer: the main renderer property inherited from Layer is used to control the display of the latest observation in a track. All renderer types are supported.
- PreviousObservationRenderer: used to control the display of previous observations in a track. All renderer types are supported
- TrackLineRenderer: used to control the display of the track line between observations. The track line renderer supports only SimpleRenderer (since the track line contains no attributes)
Labels in a dynamic entity layer are controlled through the inherited Layer labeling API. Labels only appear on the latest observation in a track and are not placed on previous observations.
The dynamic entity layer has methods for selecting or unselecting dynamic entities and observations in the display. When selecting a dynamic entity, the selection moves with the entity (the selection halo moves to the latest observation in the track) as new observations are received from the stream. Since observations are static, selected observations appear like any static GeoElement on the display.
Dynamic entity layer also supports identify behavior in a map view or scene view. Be aware that the identify results from this layer consist entirely of DynamicEntityObservation objects. Use the GetDynamicEntity() method to retrieve the DynamicEntity that the identified observation is associated with.
Gets the dynamic entity data source.
Gets a modifiable collection of LabelDefinition objects for this layer.
Gets or sets a value indicating whether labels should be displayed.
Gets or sets the pop-up definition.
Gets or sets the Renderer used to display the latest observation of dynamic entities.
Gets or sets the scene properties for the dynamic entity layer.
Gets the track display properties.
Clears all selected dynamic entities and observations.
Gets all selected dynamic entities.
Gets all selected dynamic entity observations.
Selects the specified dynamic entities.
Selects the given dynamic entity and adds it to the current list of selected dynamic entities.
Selects the given dynamic entity observation and adds it to the current list of selected observations.
Selects the given dynamic entity observations and adds them to the current list of selected observations.
Unselects the specified dynamic entities and removes them from the current list of selected dynamic entities.
Unselects the given dynamic entity and removes it from the current list of selected dynamic entities.
Unselects the given dynamic entity observation and removes it from the current list of selected observations.
Unselects the given dynamic entity observations and removes them from the current list of selected observations.
|.NET Standard 2.0