ShowXYLocation extension

Description

This sample demonstrates how to add a graphic layer to the map control and display coordinates for the current cursor location on the map.

Products: ArcGIS Mobile

Platforms: Windows

Requires: Visual Studio 2008 (SP1), .NET Framework 3.5 (SP1)

How to use

  1. Open the project within Visual Studio 2008 and load the sample project. Refer to the "Setting up development environment" section for how to set up your development machine.
  2. Compile the project and deploy the assembly to your mobile device or emulator. Refer to the "Deploying extensions" section for more information.
  3. Build and deploy the mobile project assembly file (comes with the sample project) to the <ArcGIS Mobile installation path>\bin\Extensions folder on your desktop where you will author your mobile project with the Mobile Project Center application.
  4. In Mobile Project Center, add ShowXYLocationExtension to your project on the Capabilities tab.
  5. Deploy your mobile project.
  6. Start the Windows application and open the mobile project. Notice the new Show XY on map command on the View Map page.
  7. Check Show XY on map. Tap or click on the map. The current x,y location is displayed in the left bottom corner of the map control.

Where to get the sample

The sample is available for download from here.


9/20/2011