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.

  1. Run the application.
  2. Click the Add Dynamic Layer custom command on the toolbar.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

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