Skip to content

HillshadePaint

Namespace: ThinkGeo.Core.Styling

The resolved paint of one hillshade style layer at one zoom.

public struct HillshadePaint

Inheritance object → ValueType → HillshadePaint

Remarks:

Zoom-only, like raster paint: the layer shades an elevation raster, and there are no features to drive it from. From code, hand one to or .

Properties

Exaggeration

Gets the shading strength, 0 to 1. The spec default is 0.5.

public float Exaggeration { get; }

Property Value

float

ShadowColor

Gets the colour of the shaded slopes. The spec default is black.

public GeoColor ShadowColor { get; }

Property Value

GeoColor

HighlightColor

Gets the colour of the lit slopes. The spec default is white.

public GeoColor HighlightColor { get; }

Property Value

GeoColor

AccentColor

Gets the colour of the steepest terrain. The spec default is black.

public GeoColor AccentColor { get; }

Property Value

GeoColor

IlluminationDirection

Gets where the light comes from, in degrees clockwise from the top of the viewport (or from north, with a map anchor). The spec default is 335.

public float IlluminationDirection { get; }

Property Value

float

IlluminationAnchor

Gets what the illumination direction is measured against.

public StyleAnchor IlluminationAnchor { get; }

Property Value

StyleAnchor

Constructors

HillshadePaint(float, GeoColor, GeoColor, GeoColor, float, StyleAnchor)

Initializes a new instance of the HillshadePaint struct.

HillshadePaint(float exaggeration, GeoColor shadowColor, GeoColor highlightColor, GeoColor accentColor, float illuminationDirection, StyleAnchor illuminationAnchor)

Parameters

exaggeration float
Shading strength, 0 to 1.

shadowColor GeoColor
The colour of the shaded slopes; null for the spec's black.

highlightColor GeoColor
The colour of the lit slopes; null for the spec's white.

accentColor GeoColor
The colour of the steepest terrain; null for the spec's black.

illuminationDirection float
Where the light comes from, in degrees.

illuminationAnchor StyleAnchor
What that direction is measured against; the screen by default, as the specification has it.