Image Service Vector Layer (ArcGISImageServiceVectorLayer)

The imageServiceVectorLayer displays pixel values as vectors. To do this, the image service layer must be a two-band raster in which one band holds magnitude values and one band holds direction values. The imageServiceVectorLayer also supports time-enabled data.

Properties

Property Details
definitionEditor Stores interactive filters.
disablePopup Boolean property indicating whether to ignore popups defined by the service item.
id A unique identifying string for the layer.
isReference This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false).
itemId A string containing the item ID of the service if it's registered with ArcGIS Online or your organization's portal.
layerDefinition An object that defines the attribute schema and drawing information for a layer drawn using client-side graphics.
See layerDefinition properties table.
layerType String indicating the layer type.
Value of this property must be ArcGISImageServiceVectorLayer
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.
mosaicRule Specifies the mosaic rule when defining how individual images should be mosaicked.
opacity The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.
popupInfo A popupInfo object defining the content of popup windows when you click or query a feature.
showLegend Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend. Default value is 'true'.
symbolTileSize Number describing the size of the tile.
timeAnimation This property is applicable to layers that support time. If 'true', timeAnimation is enabled.
title A user-friendly string title for the layer that can be used in a table of contents.
url The URL to the layer.
visibility Boolean property determining whether the layer is initially visible in the web map.

layerDefinition properties

Property Details
definitionExpression SQL-based definition expression string that narrows the data to be displayed in the layer.
drawingInfo Contains the drawing and labeling information.

operationalLayer Example

Live sample web maps showing the imageServiceVectorLayer as an operationalLayer.

{
  "operationalLayers": [
    {
      "id": "NDFD_wind_8497",
      "layerType": "ArcGISImageServiceVectorLayer",
      "url": "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ScientificData/NDFD_wind/ImageServer",
      "visibility": true,
      "opacity": 1,
      "title": "NDFD_wind",
      "symbolTileSize": 50,
      "layerDefinition": {
        "drawingInfo": {
          "renderer": {
            "rotationType": "geographic",
            "visualVariables": [
              {
                "type": "sizeInfo",
                "minSize": 5.625,
                "maxSize": 32.625,
                "minDataValue": 0.041,
                "maxDataValue": 31.938,
                "field": "Magnitude"
              }
            ],
            "type": "vectorField",
            "style": "beaufort_kn",
            "attributeField": "Magnitude",
            "flowRepresentation": "flow_from"
          }
        }
      },
      "mosaicRule": {
        "mosaicMethod": "esriMosaicAttribute",
        "sortField": "StdTime",
        "sortValue": "2000/01/01, 12:00 AM",
        "ascending": true,
        "mosaicOperation": "MT_FIRST",
        "multidimensionalDefinition": [
          {
            "variableName": "",
            "dimensionName": "StdTime",
            "values": [
              1414303200000
            ],
            "isSlice": true
          }
        ]
      }
    }
  ]
}

baseMapLayer Example

Live sample web maps showing the imageServiceVectorLayer as a baseMapLayer

{
  "baseMapLayers": [
    {
      "id": "NDFD_wind_8497",
      "layerType": "ArcGISImageServiceVectorLayer",
      "url": "http://sampleserver6.arcgisonline.com/arcgis/rest/services/ScientificData/NDFD_wind/ImageServer",
      "visibility": true,
      "opacity": 1,
      "title": "NDFD_wind",
      "layerDefinition": {
        "drawingInfo": {
          "renderer": {
            "rotationType": "geographic",
            "visualVariables": [
              {
                "type": "sizeInfo",
                "minSize": 5.625,
                "maxSize": 32.625,
                "minDataValue": 0.041,
                "maxDataValue": 31.938,
                "field": "Magnitude"
              }
            ],
            "type": "vectorField",
            "style": "beaufort_kn",
            "attributeField": "Magnitude"
          }
        }
      },
      "showLegend": true,
      "symbolTileSize": 50,
      "mosaicRule": {
        "mosaicMethod": "esriMosaicAttribute",
        "sortField": "StdTime",
        "sortValue": "2000/01/01, 12:00 AM",
        "ascending": true,
        "mosaicOperation": "MT_FIRST",
        "multidimensionalDefinition": [
          {
            "variableName": "",
            "dimensionName": "StdTime",
            "values": [
              1414303200000
            ],
            "isSlice": true
          }
        ]
      }
    }
  ],
  "title": "Dark Gray Canvas"
}

Feedback on this topic?