Simple dynamic display application


Purpose
This sample demonstrates the basic capabilities of the dynamic display and is the associated sample for the walkthrough, Getting started with dynamic display. This sample includes the following:
  • Additional tools that work in dynamic display
  • Custom commands that enable dynamic mode
  • A simple dynamic layer and command that adds the layer on to the map

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample.

Data has been provided for your use with this sample. It can be found at <Your ArcGIS Developer Kit Install directory>/Samples/data/wsiearth.
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. Start Visual Studio and open the solution file.
  2. Build the solution.
  3. Press F5 or double-click the resulting executable to run the application.
  4. Click the Add Data command and select the Rasters data type on the left panel on the Add Data dialog box, then browse to the wsiearth folder in the data provided with the samples.
  5. Click the wsiearth.tif image and click Open to add it to the map.
  6. Click the Toggle Dynamic Mode command on the toolbar to switch to dynamic mode.
  7. Click the Continuous Zoom, Roam, and Rotation tools on the toolbar to navigate the map.
  8. Click the Add Dynamic Map command on the toolbar to add a dynamic layer.
  9. To add additional instances of the dynamic layer to the map, click the Add Dynamic Map command again.
  10. Click the Toggle Dynamic Mode command on the toolbar to turn off dynamic mode.
  11. Close the application.

MyDynamicLayer.cs The dynamic layer implementation file.
LoadDynamicLayerCmd.cs The LoadDynamicLayerCmd.cs file.
ToggleDynamicDisplayCmd.cs The ToggleDynamicDisplayCmd.cs file.
MainForm.cs The application main form.
CreateNewDocument.cs A custom command to create a map document.
Download the C# files
MyDynamicLayer.vb The dynamic layer implementation file.
LoadDynamicLayerCmd.vb The LoadDynamicLayerCmd.cs file.
ToggleDynamicDisplayCmd.vb The ToggleDynamicDisplayCmd.cs file.
MainForm.vb The application main form.
CreateNewDocument.vb A custom command to create a map document.
Download the VB.NET files

Download the files for all languages

See Also:

Walkthrough: Getting started with dynamic display
Dynamic display
How dynamic display works
Best practices for using dynamic display




Development licensing Deployment licensing
Engine Developer Kit Engine
ArcGIS for Desktop Basic
ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced