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

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

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close