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/GPSRecording/biking.hst and <Your ArcGIS Developer Kit Install directory>/Samples/data/GPSRecording/run.gpx.
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 .dll files for the dynamic biking, dynamic biking track mode, and dynamic biking speed commands.
- Add the Dynamic Biking toolbar to an application with a MapControl and ToolbarControl, such as the MyDynamicDisplayApp sample located in the .NET samples folder.
- Click Add Data, choose the Shapefiles data type on the dialog box, then browse to <your ArcGIS developer kit install location >\Samples\data\SouthernCaliforniaRoadClip. Select SouthernCaliforniaRoadClip.shp and click Open to add it to the map.
- Make sure the map is in dynamic mode (see Additional Requirements for details, if you are not using the MyDynamicDisplayApp sample).
- Click the Dynamic Biking command, then browse to <your ArcGIS developer kit install location>/Samples/Data/GPSRecording on the dialog box for the Input Biking log file.
- Make sure the file type is set to .hst files, then open the biking.hst file.
- Zoom in the map around the bike image until the street lines in the city are shown clearly.
- Click Dynamic Biking Track mode to track the biking route with the animation of a heart beat.
- Change the biking speed by sliding the track bar.
- Click the Dynamic Biking command to stop the biking.
- To try the GPX format, click the Dynamic Biking command again and browse to the GPSRecording folder on the dialog box for the Input Biking log file.
- Make sure the file type is set to .gpx files, then open the run.gpx file.
- Change the biking speed by sliding the track bar.
- Turn off the dynamic map and close the application.
BikingTrackModeCmd.cs | A command that switches to track mode. |
DynamicBikingCmd.cs | A command that tracks the GPS route. |
DynamicBikingSpeedCmd.cs | A command that changes the biking speed. |
DynamicBikingSpeedCtrl.cs | A track bar that sets the biking speed. |
DynamicBikingToolbarClass.cs | A toolbar that hosts the biking track mode, dynamic biking, and dynamic biking speed commands. |
BikingTrackModeCmd.vb | A command that switches to track mode. |
DynamicBikingCmd.vb | A command that tracks the GPS route. |
DynamicBikingSpeedCmd.vb | A command that changes the biking speed. |
DynamicBikingSpeedCtrl.vb | A track bar that sets the biking speed. |
DynamicBikingToolbarClass.vb | A toolbar that hosts the biking track mode, dynamic biking, and dynamic biking speed commands. |
Download the files for all languages
See Also:
How to use IGeometryBridge to update dynamic geometriesWalkthrough: Getting started with dynamic display
Dynamic display
How dynamic display works
Sample: Dynamic display layer
Sample: Dynamic display—tracking dynamic object
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine Runtime |
ArcView | |
ArcEditor | |
ArcInfo |