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/USAMajorHighways/usa_major_highways.shp.
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.
- Start Visual Studio and open the solution file.
- Build the solution to make the Track Dynamic Object command .dll file. Use the command in an application with a MapControl and ToolbarControl, such as the MapControlApplication template included with the Visual Studio integration.
- Add this command to a ToolbarControl. The command (Track Dynamic Object) is located in the .NET samples category.
- Add the provided data to the MapControl. Make sure the file type is set to Shape files (*.shp).
- Run the application containing the MapControl and ToolbarControl, then zoom in an area on the roads. The application loads the navigation information from the target feature class and starts navigating (this procedure can take a few seconds).
- Click Track Dynamic Object to start tracking.
TrackObject.cs | Implementation file of the command for tracking the dynamic object. |
TrackObject.vb | Implementation file of the command for tracking the dynamic object. |
Download the files for all languages
See Also:
Dynamic displayHow dynamic display works
Best practices for using dynamic display
Walkthrough: Getting started with dynamic display
Sample: Dynamic display layer
Sample: Dynamic display compass
How to create a dynamic glyph from a marker symbol
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine |
ArcGIS for Desktop Basic | |
ArcGIS for Desktop Standard | |
ArcGIS for Desktop Advanced |