Skip to content

SymbolStyleLayer

Namespace: ThinkGeo.Core.Styling

A style layer that draws the labels and icons of its source-layer.

public sealed class SymbolStyleLayer : StyleLayer

Inheritance object → StyleLayer → SymbolStyleLayer

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 SymbolPaint A(double )

Parameters

`` double

Returns

SymbolPaint

EvaluatePaint(double, Feature)

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

public SymbolPaint EvaluatePaint(double zoom, Feature feature)

Parameters

zoom double
The map zoom to evaluate at.

feature Feature
The feature the data-driven properties read.

Returns

SymbolPaint

a(double)

internal SymbolLayout a(double )

Parameters

`` double

Returns

SymbolLayout

EvaluateLayout(double, Feature)

The symbol layout of at : properties that read the feature read this one, the rest evaluate as in SymbolStyleLayer.EvaluateLayout(double, Feature).

public SymbolLayout EvaluateLayout(double zoom, Feature feature)

Parameters

zoom double
The map zoom to evaluate at.

feature Feature
The feature the data-driven properties read.

Returns

SymbolLayout

EvaluateSortKey(double, Feature)

symbol-sort-key of at : the order the layer's symbols are placed in, lower first. 0 when the layer sets none.

public float EvaluateSortKey(double zoom, Feature feature)

Parameters

zoom double
The map zoom to evaluate at.

feature Feature
The feature whose key is wanted.

Returns

float