Raster Shaded Relief Renderer

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

Referenced by: Raster Renderers

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 scene json showing raster shaded relief renderer with traditional hillshade type.

{
  "type": "rasterShadedRelief",
  "altitude": 45,
  "azimuth": 315,
  "colorRamp": {
    "type": "multipart",
    "colorRamps": [
      {
        "type": "algorithmic",
        "fromColor": [
          175,
          240,
          233,
          255
        ],
        "toColor": [
          255,
          255,
          179,
          255
        ]
      }
    ]
  },
  "hillshadeType": "traditional",
  "pixelSizePower": 0.664,
  "pixelSizeFactor": 0.024,
  "scalingType": "adjusted",
  "zFactor": 3
}

Raster Shaded Relief Renderer Example

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

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

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