Image Service Layer (ArcGISImageServiceLayer)

An image service provides access to raster data through a web service. Multiple rasters can be served as one image service through mosaic dataset technology, dynamically processed and mosaicked on the fly. An image service supports accessing both the mosaicked image and its catalog, as well as individual rasters in the catalog. Also, image services can be cached (tiled) or uncached (dynamic). This object specifically details properties within uncached image services.

Properties

Property Details
bandIds An array of bandIds that are visible, can specify bands to export or rearrange band order(from image service).
compressionQuality Controls how much loss the image will be subjected to by the compression algorithm (from image service).
definitionEditor Stores interactive filters.
disablePopup Boolean property indicating whether to ignore popups defined by the service item.
format String value representing image format.
If property is present, must be one of the following values:
  • jpgpng
  • png
  • png8
  • png24
  • jpg
  • bmp
  • gif
  • tiff
  • png32
id A unique identifying string for the layer.
interpolation The algorithm used for interpolation.
If property is present, must be one of the following values:
  • RSP_BilinearInterpolation
  • RSP_CubicConvolution
  • RSP_Majority
  • RSP_NearestNeighbor
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 Optional string containing the item ID of the service if it's registered on 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 ArcGISImageServiceLayer
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.
noData The pixel value that represents no information.
noDataInterpretation A string value of interpretation of noData setting. Default is 'esriNoDataMatchAny' when noData is a number, and 'esriNoDataMatchAll' when noData is an array.
If property is present, must be one of the following values:
  • esriNoDataMatchAny
  • esriNoDataMatchAll
opacity The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.
pixelType Pertains to the type of values stored in the raster, such as signed integer, unsigned integer, or floating point.
If property is present, must be one of the following values:
  • C128
  • C64
  • F32
  • F64
  • S16
  • S32
  • S8
  • U1
  • U16
  • U2
  • U32
  • U4
  • U8
  • UNKNOWN
popupInfo A popupInfo object defining the content of popup windows when you click or query a feature.
refreshInterval Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled.
renderingRule Specifies the rendering rule for how the requested image should be rendered.
showLegend Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend control.
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.

operationalLayer Example

Live sample web map showing ArcGISImageServiceLayer as an operationalLayer.

{
  "operationalLayers": [
    {
      "id": "CharlotteLAS_88",
      "layerType": "ArcGISImageServiceLayer",
      "url": "https://sampleserver6.arcgisonline.com/arcgis/rest/services/CharlotteLAS/ImageServer",
      "visibility": true,
      "format": "jpgpng",
      "compressionQuality": 95,
      "opacity": 1,
      "title": "CharlotteLAS",
      "renderingRule": {
        "rasterFunction": "Stretch",
        "rasterFunctionArguments": {
          "StretchType": 5,
          "DRA": false,
          "Gamma": [
            1
          ],
          "UseGamma": true
        },
        "outputPixelType": "U8"
      },
      "mosaicRule": {
        "mosaicMethod": "esriMosaicSeamline",
        "mosaicOperation": "MT_BLEND"
      }
    }
  ]
}

baseMapLayer Example

Live sample web map showing ArcGISImageServiceLayer as a baseMapLayer.

{
  "baseMapLayers": [
    {
      "id": "CharlotteLAS_6980",
      "layerType": "ArcGISImageServiceLayer",
      "url": "https://sampleserver6.arcgisonline.com/arcgis/rest/services/CharlotteLAS/ImageServer",
      "visibility": true,
      "format": "jpgpng",
      "compressionQuality": 95,
      "opacity": 1,
      "title": "CharlotteLAS",
      "showLegend": true,
      "renderingRule": {
        "rasterFunction": "Stretch",
        "rasterFunctionArguments": {
          "StretchType": 5,
          "DRA": false,
          "Gamma": [
            3.15
          ],
          "UseGamma": true
        },
        "outputPixelType": "U8"
      },
      "mosaicRule": {
        "mosaicMethod": "esriMosaicNone",
        "ascending": true,
        "mosaicOperation": "MT_FIRST"
      }
    }
  ],
  "title": "Topographic"
}

Feedback on this topic?