RasterStyleLayer¶
Namespace: ThinkGeo.Core.Styling
A style layer that draws the tiles of its source-layer.
public sealed class RasterStyleLayer : StyleLayer
Inheritance object → StyleLayer → RasterStyleLayer
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¶
EvaluatePaint(double)¶
The raster paint at : the layer's zoom stops worked out to one RasterPaint. Raster paint never reads a feature.
public RasterPaint EvaluatePaint(double zoom)
Parameters¶
zoom double
The map zoom to evaluate at.