SetupMapArea

Titleā€ƒ SetupMapArea

Summary

The Setup Map Area task creates packages for each service in the web map within the map area extent. The tool generates tile packages (.tpk or .vtpk) and SQLite Geodatabase format replica packages for exportTilesAllowed tiled services (i.e. basemap layer) and sync enabled feature services (i.e. operational layers). It adds an Area2Package relationship between the map area item and created package items. Existing package related to a map area will remain unchanged after running the task a second time as long as its corresponding layer remain existed in the web map and therefore a valid map layer. For example, if a web map is updated with a feature layer removed after a package is created for that layer using the GP tool, the package will be removed the next time executing it since its corresponding layer no longer exists in the web map thus becomes invalid.


Usage

Syntax

ParameterExplanation
mapAreaItemId

Map area item ID, created by the Create Map Area tool.

mapLayersToIgnore (Optional)

A JSON array of individual layers, specified with their service URLs, in the map to ignore. The task generates packages for all map layers by default.

tileServices (Optional)

An array of JSON objects that contains additional export tiles enabled tile services for which tile packages (.tpk or .vtpk) need to be created. Each tile service is specified with its URL and desired level of details.

featureServices (Optional)

An array of JSON objects that contains additional sync enabled feature services for which replicas need to be created. It can also be used to override layer definition query in the map. Each feature service is specified with its url, layers, layerQueries, returnAttachments, attachmentsSyncDirection, syncModel, and syncDirection properties.

Code Samples

Tags

Credits

Use limitations