thematicGroup

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

Property Details
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.
name String property indicating the name for the thematic grouping of layers.

Example

Live sample web maps showing the use of thematicGroup

{
  "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"
  }
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.