Hillshade

Hillshades are used to visualize the valleys and ridges encoded in elevation raster data.

Hillshade visualizations are defined using “type”: “hillshade” and, support the following properties:

Field nameDescription

color

An array of colors that will be used in the hillshade. From less elevation to more.

source

The light angle. 0 is North, 90 East, …

intensity

Controls the intensity of a hillshade.

The following map is an example of a raster layer using a hillshade visualization

with the following style

{
  "version": "2.3",
  "type": "hillshade",
  "config": {"band": 1},
  "legend": {},
  "paint": {"isSandwiched": false}
}

Felt also supports adding color to hillshades by defining a color property in the style

which is defined by the following style

{
  "config": {"band": 1, "steps": [-154.46435546875, 7987.457987843631]},
  "legend": {},
  "type": "hillshade",
  "version": "2.3",
  "paint": {
    "isSandwiched": false,
    "color": "@feltHeat",
    "source": 315,
    "intensity": 0.76
  }
}

Last updated