Map Snapshot Extension

Description

This sample demonstrates how to add a menu to the map menu, which will allow you to capture current map content to an image file.

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. 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 MapSnapshotExtension to your project on the Capabilities tab.
  4. Deploy your mobile project. Refer to the "Deploying extensions" section for more information.
  5. Start the Windows application.
  6. Go to the View Map page. In the map menu, there is a new command called Take snapshot, which will capture current map content and write to an image file in your MyPictures folder.

Where to get the sample

The sample is available for download from here.


9/20/2011