Custom Layer Extension

Description

This sample shows how to customize the shared map control by adding a custom map graphic layer and create a user interface on the Settings page where you can specify how to draw on the map graphic layer.

Products: ArcGIS Mobile

Platforms: Windows Mobile 5/6

Requires: Visual Studio 2008 with SP1, .NET Compact Framework 2.0 SP2

How to use

  1. Open the project within Visual Studio 2008. To learn how to set up your development machine, click here.
  2. 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.
  3. In Mobile Project Center, add the extension to your project on the Capabilities tab.
  4. Deploy your mobile project to your Windows Mobile device or emulator. For more details on deployment, click here.
  5. Start the out-of-box mobile application.
  6. Tap to open the mobile project.
  7. On the Select Task page, tap Menu > Settings.
  8. On the Settings page, tap Custom Layer and specify how you want to draw a ring on your map.
  9. Go back to the Select Task page and choose View Map.

    A light blue ring is drawnin the center of the map page. If you don't see a ring, it's probably because the ring settings are not appropriate for your current map extent/scale. Zoom in or out and try again.

Where to get the sample

The sample is available for download from here.


9/20/2011