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

Referenced by: Raster Renderers

Properties

PropertyDetails
altitudeUsed when the hillshadeType is traditional. The altitude of the illumination source.
azimuthUsed when the hillshadeType is traditional. The azimuth of the illumination source.
colorRampThe 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.
hillshadeTypeUse single (traditional), or multiple illumination sources to generate hillshade
Valid values:
  • multi-directional
  • traditional
pixelSizeFactorAccounts for changes in scale as the viewer zooms in and out on the map display
pixelSizePowerAccounts for the altitude changes (or scale) as the viewer zooms in and out on the map display
scalingTypeApply 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
typeSpecifies the type of renderer used.
Valid value of this property rasterShadedRelief
zFactorA 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
}