Create Mobile Map (Mobile)

Summary

This tool creates a ready-to-go mobile project package for use with ArcGIS Mobile applications. Given a defined extent, this tool generates a mobile project package for selected vector and raster layers from an input map document. The output mobile project package includes a mobile project file, mobile cache schema, and data if specified. The mobile project package can then be deployed directly to devices for use in the field.

NoteNote:

The tool is only available for use with the Microsoft Windows operating system.

Usage

Syntax

CreateMobileMap_mobile (input_mapDocument, input_outputFolder, {input_mapSchemaOnly}, {input_extent}, {input_layers}, {input_version})
ParameterExplanationData Type
input_mapDocument

The map document to use to create a mobile project and mobile cache

ArcMap Document
input_outputFolder

The directory for the output mobile project and mobile cache

Folder
input_mapSchemaOnly
(Optional)

Create map schema only or map schema with mobile cache.

  • trueOnly mobile map schema will be generated.
  • falseBoth mobile map schema and mobile cache will be generated.
Boolean
input_extent
(Optional)

The extent can be specified as a string or list using four coordinates: min_x, min_y, max_x, and max_y, or by creating an extent object and setting its properties.

Extent
input_layers
[input_layers,...]
(Optional)

The names of the layers to extract

String
input_version
(Optional)

The geodatabase version from which the cache will be generated

String

Code Sample

Create Mobile Map example 1 (Python window)

Create a ready-to-go mobile project for a map document.

import arcpy
arcpy.CreateMobileMap_mobile("c:/map/redlands.mxd", "c:/redlands_MobileProject", "","","","") 
Create Mobile Map example 2 (Python window)

Generate a ready-to-go mobile project for a map document, override the default extent, and create map schema only.

import arcpy
arcpy.CreateMobileMap_mobile("c:/map/redlands.mxd", "c:/redlands_MobileProject", "true", "-1834676.42491188 -398227.791203287 -1833518.27644341 -396875.282178691", "","")
Create Mobile Map example 3 (stand-alone Python script)

Generate a mobile project for selected layers contained within a map document and override the default extract extent.

import arcpy
map_document = "C:/map/redlands.mxd"
output_folder = "C:/Mobile/DeploymentPackages/Redlands"
extract_extent = "-117.274738 34.001452 -117.1115 34.135168"
layers = " qa.SDE.Vents;qa.SDE.Offices"
arcpy.CreateMobileMap_mobile(map_document, output_folder,"#", extract_extent, layers, "#")

Environments

Extent

The extent defining the area to be synchronized. This tool accepts the extent specified in Environment Settings.

Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

10/6/2011