VectorTileLayerOptions¶
Namespace: ThinkGeo.Core
One layer of a set of vector tiles: where its features come from, what it is called inside the tiles, which of its columns travel with them, and which zoom levels it is cut at. The layer named here is the tile's own - what a style layer's source-layer matches - not a FeatureLayer.
public sealed class VectorTileLayerOptions
Inheritance object → VectorTileLayerOptions
Remarks:
A VectorTileLayerOptions.FeatureSource and a name, the way FeatureSourceVectorTileSource.FeatureSources takes them at runtime, so the same data described the same way can be cut now or cut into an archive. The name is what a style layer's source-layer matches. https://community.thinkgeo.com/t/wms-wfs-feedback-wishes/12476
Properties¶
SourceLayerName¶
Gets the name this layer has inside the tiles.
public string SourceLayerName { get; }
Property Value¶
FeatureSource¶
Gets where the features come from.
public FeatureSource FeatureSource { get; }
Property Value¶
ColumnNames¶
Gets the attribute columns written into the tiles.
public Collection<string> ColumnNames { get; }
Property Value¶
MinimumZoom¶
Gets or sets the shallowest zoom level this layer is cut at.
public int MinimumZoom { get; set; }
Property Value¶
MaximumZoom¶
Gets or sets the deepest zoom level this layer is cut at.
public int MaximumZoom { get; set; }
Property Value¶
TileBufferInPixel¶
Gets or sets how far past a tile's edge features are carried, in tile pixels.
public int TileBufferInPixel { get; set; }
Property Value¶
Constructors¶
VectorTileLayerOptions(string, FeatureSource, IEnumerable<string>, int, int, int)¶
Initializes one layer of a set of vector tiles.
public VectorTileLayerOptions(string sourceLayerName, FeatureSource featureSource, IEnumerable<string> columnNames, int minimumZoom, int maximumZoom, int tileBufferInPixel)
Parameters¶
sourceLayerName string
The name this layer has inside the tiles - what a style layer's source-layer
matches.
featureSource FeatureSource
Where the features come from. It must already deliver the coordinate system the
tiles are cut in; set its when the
data is stored in another one.
columnNames IEnumerable<string>
The attribute columns written into the tiles. Anything not named here is dropped,
so name what the style reads and no more.
minimumZoom int
The shallowest zoom level this layer is cut at.
maximumZoom int
The deepest zoom level this layer is cut at.
tileBufferInPixel int
How far past a tile's edge features are carried, in the grid's own tile pixels, so a
feature crossing the edge is not cut off at the seam. 8 by default, the margin tiles cut
on the fly carry, so an archive and the live tiles of the same data draw the same.
Methods¶
A()¶
internal Cg A()
Returns¶
Cg
A(IEnumerable<VectorTileLayerOptions>)¶
internal static List<Cg> A(IEnumerable<VectorTileLayerOptions> )
Parameters¶
`` IEnumerable<VectorTileLayerOptions>