DynamicEntity QML Type

GeoElement that represents a real-world object received from a DynamicEntityDataSource."> DynamicEntity QML Type | ArcGISQtQml
  • Esri.ArcGISRuntime
  • DynamicEntity
  • A GeoElement that represents a real-world object received from a DynamicEntityDataSource. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 200.1
    Inherits:

    Object

    Properties

    Signals

    Methods

    Detailed Description

    s

    Dynamic entities are updated with data coming from a stream. These updates are referred to as observations and are represented by the DynamicEntityObservation class. An observation is a static snapshot of the state of a dynamic entity at a given time. This snapshot includes the associated dynamic entity's location (geometry) as well as all its attributes. For example, an observation for a moving aircraft may include updates to attributes like speed, altitude, and heading in addition to its updated location. While observations remain static, a dynamic entity changes because it's essentially a pointer to the most recent observation.

    The properties of a DynamicEntity, such as its attributes and geometry, are updated when new observations are received from the server. You should not cache the geometry or attributes collection properties as they are completely replaced when a new observation is received for the associated DynamicEntity.

    Note: You cannot declare or create a component of this type in QML code.

    See also GeoElement and DynamicEntityLayer.

    Property Documentation

    [read-only] attributes : AttributeListModel

    The attributes of the DynamicEntity.

    See GeoElement.

    See also GeoElement.


    [read-only] entityId : string

    A unique identifier for the DynamicEntity (read-only).

    The entityId property uniquely identifies a DynamicEntity.


    geometry : Geometry

    The geometry of the DynamicEntity.

    See GeoElement.

    See also GeoElement.


    Signal Documentation

    dynamicEntityChanged()

    Notification that DynamicEntity has changed.

    Note: The corresponding handler is onDynamicEntityChanged.


    geometryChanged()

    Emitted when the geometry property changes.

    Note: The corresponding handler is onGeometryChanged.


    Method Documentation

    DynamicEntityObservation latestObservation()

    Gets the latest DynamicEntityObservation associated with this dynamic entity.

    The observation returned by this method represents a snapshot of the state of this dynamic entity at the time the observation was received. This method may return null if the dynamic entity has been purged from the local data cache.

    See also DynamicEntityDataSourcePurgeOptions.


    list<DynamicEntityObservation> observations(int maximumObservations)

    Gets the collection of DynamicEntityObservation objects associated with this dynamic entity.

    • maximumObservations - The maximum number of observations to return, including the latest.

    Use this method to get a collection of DynamicEntityObservation objects associated with this dynamic entity. Observations are associated with a dynamic entity through a shared track ID. For ArcGISStreamService data sources, the track ID field is defined by the ArcGISStreamServiceInfo::trackIdField property.

    The returned observations are sorted from the most recent to the oldest.

    This method may return an empty collection if the dynamic entity has been purged from the local data cache.

    See also ArcGISStreamServiceInfo and DynamicEntityDataSourcePurgeOptions.


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.