This sample shows how to use the ArcGIS dynamic display to track a dynamic object and simulate a tracking mode where the map is centered and aligned according to the tracked object. The following items are discussed in this sample:
-
Switching the display into dynamic mode
-
Updating the map visible extent and rotation according to information for the tracked object
-
Listening to the AfterDynamicDraw event to show the location of the tracked object
-
Creating dynamic glyphs from in-memory bitmaps
-
Changing different characters of the dynamic symbol
The tracking data for this sample gets created synthetically out of an existing feature class. This process might take time before the sample starts running.
Language: C#, VB
Subject: Graphics Pipeline
Organization: Esri, http://www.esri.com
Date: 10/17/2019
ArcObjects SDK: 10.8
Visual Studio: 2017, 2019
.NET Target Framework: 4.5
- ArcObjects .NET API Reference online
- Sample Data Download
- What's new
- Download the ArcObjects SDK for .Net from MyEsri.com
- 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.
Dynamic display
How 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 Desktop Basic | |
ArcGIS Desktop Standard | |
ArcGIS Desktop Advanced |