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.

Prerequisites

Product: ArcGIS for Windows Mobile

Platforms: Windows Mobile 5/6

Requirements: Visual Studio 2008 with SP1, .NET Compact Framework 3.5

How to use

  1. Open the project in Visual Studio 2008.
  2. Build and deploy the mobile project assembly file (available with the sample project) to the <ArcGIS Mobile installation path>\bin\Extensions folder on your desktop where you'll 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.
  5. Start the out-of-the-box mobile application.
  6. 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 drawn in 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 or scale. Zoom in or out and try again.

Where to get the sample

The sample is available for download from ArcGIS Online.

1/7/2015