Raster Shaded Relief Renderer

This renderer produces a grayscale or colored 3D representations. This renderer can be used on either layers of type: ImageServiceLayer or TiledImageServiceLayer

Referenced by: renderer

Properties

Property Details
altitude Used when the hillshadeType is traditional. The altitude of the illumination source.
azimuth Used when the hillshadeType is traditional. The azimuth of the illumination source.
colorRamp The color ramp to display the shaded relief. when not specified, a grayscale hillshade is produced. When this is specified, grayscale hillshade is fused with colorized elevation.
hillshadeType Use single (traditional), or multiple illumination sources to generate hillshade
Valid values:
  • multi-directional
  • traditional
pixelSizeFactor Accounts for changes in scale as the viewer zooms in and out on the map display
pixelSizePower Accounts for the altitude changes (or scale) as the viewer zooms in and out on the map display
scalingType Apply a constant or adjusted z-factor based on resolution changes. The adjusted type is suitable for worldwide elevation dataset. An adjusted zFactor is determined using this equation: Adjusted Z-Factor = (Z Factor) + (Pixel Size) (Pixel Size Power) x Pixel Size Factor
Valid values:
  • adjusted
  • none
type Specifies the type of renderer used.
Valid value of this property rasterShadedRelief
zFactor A conversion factor that adjusts the units of measure for the vertical (or elevation) units when they are different from the horizontal coordinate (x,y) units of the input surface. It is the number of ground x,y units in one surface z-unit.

Raster Shaded Relief Renderer Example

Web map json showing raster shaded relief renderer with traditional hillshade type

{
  "type": "rasterShadedRelief",
  "hillshadeType": "traditional",
  "azimuth": 315,
  "altitude": 45,
  "zFactor": 1,
  "scalingType": "none",
  "pixelSizePower": 0.664,
  "pixelSizeFactor": 0.024,
  "colorRamp": {
    "type": "algorithmic",
    "algorithm": "esriHSVAlgorithm",
    "fromColor": [
      211,
      229,
      232,
      255
    ],
    "toColor": [
      46,
      100,
      140,
      255
    ]
  }
}

Raster Shaded Relief Renderer Example

Web map json showing raster shaded relief renderer with multi-directional hillshade type

{
  "type": "rasterShadedRelief",
  "hillshadeType": "multi-directional",
  "azimuth": 315,
  "altitude": 45,
  "zFactor": 1,
  "scalingType": "adjusted",
  "pixelSizePower": 0.75,
  "pixelSizeFactor": 0.05
}

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