ThematicGroup is specifically for working with ArcGISMapServiceLayer layer types that reference Esri’s demographic services. Since these services have multiple fields and layers, the thematicGroup provides a subset to use.

Referenced by: Map Service Layer (ArcGISMapServiceLayer)

Properties

PropertyDetails
fieldNames[]An array of string values indicating all the fields used within the webmap. All other fields can be disregarded and should not display in any field selection list.
layerIds[]A zero-based array of integers indicating the layers to be used in the webmap. NOTE: All other layers should not be added to the TOC and may or may not be visible on the map as reference layers.
nameString property indicating the name for the thematic grouping of layers.

Example

{
"thematicGroup": {
"fieldNames": [
"ID",
"NAME",
"STATE_NAME",
"ST_ABBREV",
"TOTPOP_CY",
"HHPOP_CY",
"POPDENS_CY",
"TOTHH_CY",
"CIVLBFR_CY",
"EMP_CY",
"UNEMP_CY",
"UNEMPRT_CY",
"NAME"
],
"layerIds": [
2,
3,
4,
5,
6,
7,
8
],
"name": "2015 USA Unemployment Rate"
}
}