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
- Open the project in Visual Studio 2008.
- 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.
- In Mobile Project Center, add the extension to your project on the Capabilities tab.
- Deploy your mobile project to your Windows Mobile device or emulator. For more details on deployment.
- Start the out-of-the-box mobile application.
- Open the mobile project.
- On the Select Task page, tap Menu > Settings.
- On the Settings page, tap Custom Layer and specify how you want to draw a ring on your map.
- 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