An environmental agency may track coastal erosion by comparing images of an area taken over a a longer period of time with hillshade renderers applied.
How to use the sample
Choose and adjust the settings to update the hillshade renderer on the raster layer. The sample allows you to change the Altitude, Azimuth, and Slope Type.
How it works
A Raster is constructed from the local raster file. The Raster is then used to construct a RasterLayer, which is then added to a Map. Finally HillshadeRenderer is created, several of the properties are set (azimuth, angle, and so on), and the renderer is set on the RasterLayer. You can modify the look of the HillshadeRenderer by pressing the Edit Renderer button, and changing the azimuth, angle, and slope type. Each time the apply button is clicked, a new HillshadeRenderer is created and set on the RasterLayer.
Create a Raster from a grayscale raster file.
Create a RasterLayer from the raster.
Create a Basemap from the raster layer and set it to the map.
Create a HillshadeRenderer, specifying the slope type and other properties.
Set the hillshade renderer to be used on the raster layer with rasterLayer.renderer.
Relevant API
Basemap
HillshadeRenderer
Raster
RasterLayer
Offline Data
Read more about how to set up the sample's offline data here.