slopeMap
The slopeMap object enables creation of a slope map and control over the slope map palette. The following methods are available:
§ show()
static show : Boolean
Gets and sets a Boolean that indicates whether the slope map is visible in the 3D Window.
setSlopeMapPalette(paletteObj)
Sets a custom slope palette.
Parameters
Name |
Type |
Description |
paletteObj |
Object |
Key/value pairs, where key corresponds to the angle, and value to the color. |
Example
The following example sets the slope map palette to different colors at altitude 0, 10 and 90:
TerraExplorer.analysis.slopeMap.setSlopeMapPalette({0:"#ff88dd", 10:"#ffff00",90:"#564738"});