Implement dynamic layer


Purpose
This sample demonstrates how to use ArcGIS Dynamic Display application programming interfaces (APIs) to implement a dynamic layer. 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. Custom dynamic layers, in genera,l can aid in visualizing near-to-real time data.
 
This dynamic layer 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 Toggle Dynamic Mode custom command on the toolbar.
  4. When the map is in dynamic mode, 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/ToggleDynamicDisplayCommand.java Represents a custom command that sets the map in dynamic mode.
display/AddDynamicLayerCommand.java Represents a custom command that adds a custom dynamic layer to a dynamic map.
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