Dynamic cache layer manager controller


PurposeThis sample shows the properties of the dynamic cache layer manager. The user is able to change the cache layer properties to optimize the display of non-dynamic layers in dynamic mode.

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/World/World.mxd.
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 Dynamic Cache Layer Manager command .dll file. Use the command in an application with a MapControl and ToolbarControl, such as the MyDynamicDisplayApp sample located in the .NET samples folder.
  3. Add this command to a ToolbarControl. The command (Dynamic Cache Layer Manager) can be found in the .NET samples category.
  4. Run the application containing the MapControl and ToolbarControl.
  5. Open the map document located in <Your ArcGIS Developer kit install location>/Samples/Data/World/World.mxd.
  6. Enable dynamic display first (see Additional Requirements in this sample for details if not using the MyDynamicDisplayApp sample), then click the Dynamic Cache Layer Manager button. The CacheManagerDlg dialog box appears.
  7. Experiment with the display of non-dynamic layers by modifying the cache layer properties in dynamic mode.
  8. Click Apply on the dialog box to accept the change.
  9. Click OK to accept all changes, then close the dialog box.

CacheManagerDlg.cs Dialog box used to change the Cache Layer Manager properties.
CacheLayerManagerCmd.cs Command that opens the Cache Layer Manager properties dialog box.
Download the C# files
CacheManagerDlg.vb Dialog box used to change the Cache Layer Manager properties.
CacheLayerManagerCmd.vb Command that opens the Cache Layer Manager properties dialog box.
Download the VB.NET files

Download the files for all languages

See Also:

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




Additional Requirements
  • To switch to dynamic mode, compile the DynamicDisplayHUD sample to retrieve the Toggle Dynamic Mode command. This command can be found 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