Group Layer

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 scale visibility, sublayers of a group layer will be visible only within the scale range defined for the group layer. A sublayer may further restrict itself to a narrow scale range. In other words, a sublayer will be visible only when the current map scale intersects the scale range of that sublayer as well as the scale range of all its parent group layers.

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.
Valid values: average, color, color-burn, color-dodge, 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
layers[] list of child operationalLayers
layerType String indicating the layer type
Valid value of this property GroupLayer
listMode To show or hide the group layer in the layer list
Valid values:
  • hide
  • hide-children
  • show
maxScale A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.
minScale A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.
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. If this is not included, a title is derived from the service
visibility Boolean property determining whether the layer is initially visible in the web scene
visibilityMode How visibility of children is affected:independent, exclusive, inherited
Valid values:
  • exclusive
  • independent
  • inherited
visibilityTimeExtent Represents time extent that will control when a layer should be visible based on webscene's current time. Visibility time extent only affects the layer visibility and will not filter the data.

groupLayer Example

Live sample web scene showing groupLayer

{
  "id": "scenarios",
  "layerType": "GroupLayer",
  "visibilityMode": "exclusive",
  "listMode": "show",
  "opacity": 1,
  "maxScale": 144447,
  "minScale": 0,
  "title": "Building Scenarios",
  "visibility": true,
  "blendMode": "normal",
  "layers": [
    {
      "id": "devA",
      "opacity": 1,
      "title": "Dev A Buildings",
      "url": "https://scenesampleserverdev.arcgis.com/arcgis/rest/services/Hosted/DevA_BuildingShell_Textured/SceneServer/layers/0",
      "visibility": true,
      "layerType": "ArcGISSceneServiceLayer",
      "itemId": "e3e09257b8e14872b56b4801b01e6c6e"
    },
    {
      "id": "devB",
      "opacity": 1,
      "title": "DevB Buildings",
      "url": "https://scenesampleserverdev.arcgis.com/arcgis/rest/services/Hosted/DevB_BuildingShell_Textured/SceneServer/layers/0",
      "visibility": false,
      "layerType": "ArcGISSceneServiceLayer",
      "itemId": "3e6ac251b62b4f02a58fd942f80fd369"
    }
  ]
}

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