Skip to content

HeatmapStyleLayer

Namespace: ThinkGeo.Core.Styling

A style layer that draws the density surface of its source-layer.

public sealed class HeatmapStyleLayer : StyleLayer

Inheritance object → StyleLayer → HeatmapStyleLayer

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

A(double)

internal HeatmapPaint A(double )

Parameters

`` double

Returns

HeatmapPaint

EvaluatePaint(double, Feature)

The heatmap paint of at : properties that read the feature read this one, the rest evaluate as in HeatmapStyleLayer.EvaluatePaint(double, Feature).

public HeatmapPaint EvaluatePaint(double zoom, Feature feature)

Parameters

zoom double
The map zoom to evaluate at.

feature Feature
The feature the data-driven properties read.

Returns

HeatmapPaint