Dimension Layer

Dimension layers can be used to visually annotate the lengths between points in a map. They can be created by embedding the dimensions directly in the layer.

Referenced by: operationalLayers

Properties

Property Details
dimensions[] A collection of dimension objects embedded in the layer.
id A unique identifying string for the layer.
layerType String indicating the layer type.
Valid value of this property ArcGISDimensionLayer
listMode To show or hide the layer in the layer list.
Valid values:
  • hide
  • show
style Specification of how dimensions and their labels are displayed.
title A human readable string title for the layer that can be used in a table of contents.
visibility Boolean property determining whether the layer is visible in the scene.
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.

Example

{
  "id": "0ed3520523734394b67a760e9f90c5dc",
  "layerType": "ArcGISDimensionLayer",
  "title": "Length dimensions",
  "visibility": true,
  "dimensions": [
    {
      "type": "length",
      "startPoint": {
        "x": 0,
        "y": 0,
        "z": 10,
        "spatialReference": {
          "wkid": 102100
        }
      },
      "endPoint": {
        "x": 10,
        "y": 10,
        "z": 10,
        "spatialReference": {
          "wkid": 102100
        }
      },
      "measureType": "vertical",
      "offset": 2,
      "orientation": 90
    }
  ],
  "style": {
    "type": "simple",
    "color": [
      0,
      0,
      0
    ],
    "fontSize": 10,
    "lineSize": 2,
    "textBackgroundColor": [
      0,
      0,
      0
    ],
    "textColor": [
      255,
      255,
      255
    ]
  }
}

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