Skip to content

HillshadeStyleLayer

Namespace: ThinkGeo.Core.Styling

A style layer that draws the terrain shading of its source-layer.

public sealed class HillshadeStyleLayer : StyleLayer

Inheritance object → StyleLayer → HillshadeStyleLayer

Properties

Id

public string Id { get; }

Property Value

string

LayerIndex

The layer's place in the style's order - lower draws first. Set when the style compiles: a layer from a Create* factory reads 0 until a style it is added to has compiled, and the compiled style's layers carry the order.

public int LayerIndex { get; }

Property Value

int

Type

public StyleLayerType Type { get; }

Property Value

StyleLayerType

SourceId

The name of the source the layer draws from. Empty for a layer from a Create* factory until the style it is added to compiles: MapStyle.AddVectorTiles(IVectorTileSource, string, StyleLayerSlot, StyleLayer[]) binds it.

public string SourceId { get; }

Property Value

string

SourceLayer

The layer inside the source's tiles the layer draws.

public string SourceLayer { get; }

Property Value

string

MinZoom

The zoom the layer starts drawing at (minzoom), or null for none. Zoom here is the map's own: the camera's zoom is MapUtil.GetZoom(scale, ZoomScales) over the MapView's ZoomScales ladder - the number MapView.CurrentZoom reports - so a classic scale denominator converts with that call and back with MapUtil.GetScale(zoom, ZoomScales), with no constant to guess. It is an index into that ladder. The default ladder of a metre-unit map, ThinkGeoCloudMapsZoomLevelSet, is the MapLibre one (512-pixel tiles, index 0 at 1:295,829,355), so a style document's minzoom means what it means in MapLibre; a 256-pixel ladder in ZoomScales shifts every zoom in this style by one.

public Nullable<double> MinZoom { get; }

Property Value

Nullable<double>

MaxZoom

The zoom the layer stops drawing at (maxzoom, exclusive), or null for none. See StyleLayer.MinZoom for the units.

public Nullable<double> MaxZoom { get; }

Property Value

Nullable<double>

Methods

EvaluatePaint(double)

The hillshade paint at : the layer's zoom stops worked out to one HillshadePaint. Hillshade paint never reads a feature.

public HillshadePaint EvaluatePaint(double zoom)

Parameters

zoom double
The map zoom to evaluate at.

Returns

HillshadePaint