Skip To Content ArcGIS for Developers Sign In Dashboard

Web Map Specification

Group Layer (GroupLayer)

GroupLayer provides the ability to organize several sublayers into one common layer. Suppose there are several FeatureLayers that all represent water features in different dimensions. For example, wells (points), streams (lines), and lakes (polygons). The GroupLayer provides the functionality to treat them as one layer called Water Features even though they are stored as separate feature layers.

With respect to layer blending, sublayers of a group layer are blended together in isolation, separate from layers outside that group layer. When blendMode is specified for a group layer, the group's collective content is blended with the layer underneath.

Referenced by: operationalLayers

Properties

Property Details
blendMode Blend modes are used to create various effects by blending colors of top and background layers. normal blend mode is the default.
If property is present, must be one of the following values: average, color-burn, color-dodge, color, darken, destination-atop, destination-in, destination-out, destination-over, difference, exclusion, hard-light, hue, invert, lighten, lighter, luminosity, minus, multiply, normal, overlay, plus, reflect, saturation, screen, soft-light, source-atop, source-in, source-out, vivid-light, xor
id A unique identifying string for the layer.
layerType String indicating the layer type.
Value of this property must be GroupLayer
layers List of child operationalLayers
opacity The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.
title A user-friendly string title for the layer that can be used in a table of contents.
visibility Boolean property determining whether the layer is initially visible in the web map

Example

{
  "id": "groupLayer",
  "layerType": "GroupLayer",
  "opacity": 1,
  "title": "US Census",
  "visibility": true,
  "layers": [
    {
      "id": "Census_6999",
      "title": "Census - states",
      "url": "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3",
      "layerType": "ArcGISFeatureLayer"
    },
    {
      "id": "Census_616",
      "title": "Census - Detailed Counties",
      "url": "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/2",
      "layerType": "ArcGISFeatureLayer"
    }
  ]
}

Feedback on this topic?