Vehicle Tracker Extension


Purpose
This sample illustrates how you can use an Extension add-in to provide moving graphics, and also includes examples of using the BackgroundWorker, using a timer, and listening to document events. While this sample uses data stored in local XML files in order to provide a reliable accessible sample, it could easily be adapted to load data from a feed, for example a GeoRSS feed.

How to use

See Using the 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.

  1. Open and build the solution in Visual Studio. Please note that once you have built and compiled an extension for ArcGIS Explorer it is automatically loaded when the application starts. The extension itself does not appear on the Add-Ins tab in the application, although the Button which is also part of the sample will appear.
  2. Open ArcGIS Explorer, choose the Add-Ins tab on the Ribbon, and click the Zoom to Vehicle Tracking area button.
  3. Click the individual ambulance graphics in the map to see more information in a popup window.


  4. Screenshot showing vehicle graphics and popup window in ArcGIS Explorer


Download the files for all languages
Extension.cs This class defines the Extension, and also contains all code to read the XML information and show Graphics on the map.
Vehicle.cs This class holds information about a vehicle.
ZoomToLouisville.cs This class defines a Button which zooms to the area used to display Graphics.
Download the C# files
Extension.vb This class defines the Extension, and also contains all code to read the XML information and show Graphics on the map.
Vehicle.vb This class holds information about a vehicle.
ZoomToLouisville.vb This class defines a Button which zooms to the area used to display Graphics.
Download the VB.NET files

See Also:

BackgroundWorker




Additional Requirements
  • The provided vehicle data XML files, stored in the sample folder.