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¶
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¶
Type¶
public StyleLayerType Type { get; }
Property Value¶
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¶
SourceLayer¶
The layer inside the source's tiles the layer draws.
public string SourceLayer { get; }
Property Value¶
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¶
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¶
Methods¶
A(double)¶
internal SymbolPaint A(double )
Parameters¶
`` double
Returns¶
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¶
a(double)¶
internal SymbolLayout a(double )
Parameters¶
`` double
Returns¶
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¶
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.