Dynamic layers


Purpose
This sample demonstrates how to use ArcGIS Dynamic Display application programming interfaces (APIs) to visualize dynamic objects. A custom dynamic layer that implements the IDynamicLayer interface is created. This interface allows the layer to render the location of the dynamic item and update it every 30 minutes.
 
This sample also pans the map with respect to the position of the dynamic item, so the dynamic item is always within the visible extent of the map.
 
The dynamic layer in this sample uses prerecorded data from an Extensible Markup Language (XML) stream to simulate dynamic data.

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. Click the Add Dynamic Layer custom command on the toolbar.


Download the files for Java
display/DynamicDisplayApp.java Contains the user interface (UI) code for the sample.
display/DynamicTrackingCommand.java Represents a custom command that tracks a moving object on Freeway I10.
display/MyDynamicLayer.java Represents the implementation of a custom dynamic layer. The dynamic layer renders a simple marker using dynamic display drawing APIs.




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime