Dynamic display animated zoom


PurposeThis sample shows how to use rubber banding envelopes to animate zooming in and out of the map in dynamic mode.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and 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. Start Visual Studio and open the solution.
  2. Build the solution to make the Animated Zoom In and Animated Zoom Out tool .dll files. Use both tools in an application with a MapControl and ToolbarControl, such as the MyDynamicDisplayApp sample located in the .NET samples folder.
  3. Add the Animated Zoom In and Animated Zoom Out tools to the ToolbarControl (located in the .NET samples category).
  4. Run the application.
  5. Click the Add Data command, select the Rasters data type on the dialog box, browse to <your ArcGIS developer kit install location>\Samples\data\wsiearth, then choose the wsiearth.tif file.
  6. Click Open to add the .tif file to the map.
  7. Make sure the map is in dynamic mode (see Additional Requirements in this sample for details if not using the MyDynamicDisplayApp sample).
  8. Click the Animated Zoom In tool, then click and drag an envelope on to the map.
  9. Click the Animated Zoom Out tool, then click and drag an envelope on to the map.
  10. Turn off the dynamic map and close the application.

AnimatedZoomInTool.cs Tool that animates the map zoom in while dynamic display is enabled.
AnimatedZoomOutTool.cs Tool that animates the map zoom out while dynamic display is enabled.
Download the C# files
AnimatedZoomInTool.vb Tool that animates the map zoom in while dynamic display is enabled.
AnimatedZoomOutTool.vb Tool that animates the map zoom out while dynamic display is enabled.
Download the VB.NET files

Download the files for all languages

See Also:

Dynamic display
Persisting cache information for use in dynamic display
Limitations for dynamic display
Sample: Dynamic display layer




Additional Requirements
  • To switch to dynamic mode, compile the DynamicDisplayHUD sample to retrieve the Toggle Dynamic Mode command, which is located in the .NET samples category.

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