VectorTile¶
Namespace: ThinkGeo.Core
public class VectorTile : Tile
Inheritance Object → Tile → VectorTile
Properties¶
IsFromCache¶
public bool IsFromCache { get; set; }
Property Value¶
Content¶
public Byte[] Content { get; set; }
Property Value¶
ZoomIndex¶
public int ZoomIndex { get; set; }
Property Value¶
X¶
public long X { get; set; }
Property Value¶
Column¶
public long Column { get; set; }
Property Value¶
Y¶
public long Y { get; set; }
Property Value¶
Row¶
public long Row { get; set; }
Property Value¶
CacheId¶
The CacheId of the Tile. This is for avoiding the issue that Tile A is saved to Tile B's Cache in a multi-threading environment.
public string CacheId { get; set; }
Property Value¶
Constructors¶
VectorTile()¶
public VectorTile()
VectorTile(Byte[], Int32, Int64, Int64)¶
public VectorTile(Byte[] content, int zoom, long x, long y)
Parameters¶
content Byte[]
zoom Int32
x Int64
y Int64
Methods¶
GetFeatures(IEnumerable<String>)¶
internal Collection<Feature> GetFeatures(IEnumerable<string> pbfLayerNames)
Parameters¶
pbfLayerNames IEnumerable<String>
Returns¶
GetFeatures(IEnumerable<PbfLayer>)¶
public Collection<Feature> GetFeatures(IEnumerable<PbfLayer> layers)
Parameters¶
layers IEnumerable<PbfLayer>
Returns¶
GetPbfLayers()¶
Read all pbf layers from vector tileView.
public Collection<PbfLayer> GetPbfLayers()
Returns¶
Collection<PbfLayer>
All pbf layers of vector tileView.
BuildContentFromPbfLayers(IEnumerable<PbfLayer>)¶
Serializes a set of PbfLayer back into a gzipped Mapbox‐vector‐tile byte array.
public static Byte[] BuildContentFromPbfLayers(IEnumerable<PbfLayer> layers)
Parameters¶
layers IEnumerable<PbfLayer>
The layers you want to embed, in the desired Z/X/Y order (any order really).
Returns¶
Byte[]
A gzipped PBF blob ready to be stored in your tile_data field.