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.
- Open the solution using Visual Studio.
- Build the solution to make the 'Add Dynamic Layer' command dll.
- You will need to use this command in an application with a MapControl and a ToolbarControl such as, the MapControlApplication template included with the Visual Studio Integration.
- Add the command to the ToolbarControl. The command can be found in the '.NET Samples' category with the name 'Add Dynamic Layer'.
- Run the application and add any layer to use as a background.
- Click the 'Add Dynamic Layer' command in order to add the dynamic layer to the map. You will notice that the map will switch into Dynamic-Mode and the layer with 100 dynamic items will get added to the map.
MyDynamicLayerClass.cs | Implementation file of the dynamic layer |
AddMyDynamicLayerCmd.cs | A command that allows to add or remove the dynamic layer |
DynamicLayerToolbar.cs | The toolbar that hosts the AddMyDynamicLayer command |
MyDynamicLayerClass.vb | Implementation file of the dynamic layer |
AddMyDynamicLayerCmd.vb | A command that allows to add or remove the dynamic layer |
DynamicLayerToolbar.vb | The toolbar that hosts the AddMyDynamicLayer command |
Download the files for all languages
See Also:
Dynamic displayWalkthrough: Getting started with dynamic display
How dynamic display works
Best practices for using dynamic display
Sample: Dynamic display—tracking dynamic object
Sample: Dynamic display compass
Writing multithreaded ArcObjects code
How to create a dynamic glyph from a marker symbol
Sample: Dynamic logo
Sample: Dynamic heads up display
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine |
ArcGIS for Desktop Basic | |
ArcGIS for Desktop Standard | |
ArcGIS for Desktop Advanced |