The web map data lists the basemap, operational layers, and bookmarks to be used in the web map. It also contains information about popup windows and layer styling overrides to be used in the web map. A version property allows you to supply the version of the web map JSON format being used.

Part of the Esri web map specification. See http://resources.arcgis.com/en/help/arcgis-web-map-json/. See https://developers.arcgis.com/web-map-specification/objects/webmap/.

interface WebMapJson {
    applicationProperties?: ApplicationPropertiesJson;
    authoringApp?: string;
    authoringAppVersion?: string;
    background?: ColorBackgroundJson;
    baseMap: BasemapJson;
    bookmarks?: BookmarkJson[];
    initialState?: InitialStateJson;
    mapFloorInfo?: MapFloorInfoJson;
    mapRangeInfo?: MapRangeInfoJson;
    operationalLayers?: OperationalLayerJson[];
    presentation?: PresentationJson;
    spatialReference: SpatialReferenceJson;
    tables?: TableJson[];
    timeZone?: string;
    utilityNetworks?: UtilityNetworkJson[];
    version: string;
    widgets?: WidgetsJson;
}

Hierarchy (view full)

Properties

applicationProperties?: ApplicationPropertiesJson

The applicationProperties object is one of the objects at the top level of the JSON web map JSON schema. This is responsible for containing the viewing and editing properties of the web map. There are specific objects within this object that are applicable only to Collector and are explained within the property descriptions.

authoringApp?: string

String value indicating the application which authored the webmap.

authoringAppVersion?: string

String value indicating the authoring App's version number.

background?: ColorBackgroundJson

The background.

baseMap: BasemapJson

The map's basemap layer(s). Layers are drawn based on the index position in the array; The first layer in the array is the first layer drawn, the next layer in the array is drawn on top of it, and so on.

bookmarks?: BookmarkJson[]

Bookmarks that are saved with the map.

initialState?: InitialStateJson

The initial state at which to open the map.

mapFloorInfo?: MapFloorInfoJson

Contains floor-awareness information for the map.

mapRangeInfo?: MapRangeInfoJson

Map range information.

operationalLayers?: OperationalLayerJson[]

Operational layers contain your business data. They are used to make thematic maps. Usually, a basemap sits beneath your operational layers to give them geographic context. See https://developers.arcgis.com/web-map-specification/objects/operationalLayers/.

presentation?: PresentationJson

A presentation consists of multiple slides. Each slide has a different title, extent, basemap, layers etc.

spatialReference: SpatialReferenceJson

An object used to specify the spatial reference of the given geometry.

tables?: TableJson[]

Specify an array of table objects.

timeZone?: string

TODO: Not yet documented in web map spec, but present in 2.29 web maps generated by Maps SDK 4.28.

utilityNetworks?: UtilityNetworkJson[]

An array of utility network objects the map can use to access utility-related functionality, such as tracing and querying associations.

version: string

Root element in the web map specifying a string value indicating the web map version. See https://developers.arcgis.com/web-map-specification/objects/version/.

widgets?: WidgetsJson

The widgets object contains widgets that should be exposed to the user.