Dynamic tracking


Purpose
This sample demonstrates how to use ArcGIS Dynamic Display application programming interfaces (APIs) to track multiple dynamic objects. A dynamic layer is a custom layer that implements the IDynamicLayer interface, as well as the standard interfaces. The IDynamicLayer interface allows the layer to draw its items and update them at regular intervals and can aid in visualizing near-to-real time data. This sample also demonstrates how to create dynamic symbols from graphic resources to render on dynamic layers.
 
The dynamic layer in this sample uses synthetic data to simulate dynamic data. In the case of a real-life dynamic layer, the dynamic data can be streamed to the layer by a communication port, an Extensible Markup Language (XML) stream, an ArcGIS tracking server, or any other live feed.

How to use

See How to use ArcGIS samples for help on running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Run the application.
  2. Load a base map.
  3. Click the DynamicTracking custom command on the toolbar.


Download the files for Java
display/DynamicApp.java Contains the user interface (UI) code for the sample.
display/DynamicTrackingCommand.java Represents a custom command that sets the map to dynamic mode and adds a dynamic layer.
display/MyDynamicLayer.java Represents the implementation of a custom dynamic layer. The dynamic layer renders multiple dynamic items using dynamic display drawing APIs.
display/NavigationData.java Represents the navigation data used in the dynamic layer.




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime