Utility class to generate Vector Tile data from ShapeFile layers.

Namespace:  EGIS.Web.Controls
Assembly:  EGIS.Web.Controls (in EGIS.Web.Controls.dll)

Syntax

Visual Basic
Public Class VectorTileGenerator
C#
public class VectorTileGenerator
Visual C++
public ref class VectorTileGenerator
JavaScript
EGIS.Web.Controls.VectorTileGenerator = function();

Type.createClass(
	'EGIS.Web.Controls.VectorTileGenerator');

Remarks

This class can be combined with EGIS.Mapbox.Vector.Tile.VectorTileParser to create Mapbox vector tiles.

Examples

Sample code to create a Mapbox Vector Tile from a shapefile.
 Copy imageCopy Code
        
            public void CreateMapboxTile(List<ShapeFile> mapLayers, string vectorTileFileName)
            {
                //create a VectorTileGenerator
                VectorTileGenerator tileGenerator = new VectorTileGenerator();
                List<VectorTileLayer> tileLayers = tileGenerator.Generate(tileX, tileY, zoomLevel, mapLayers);
                //encode the vector tile in Mapbox vector tile format
                using (System.IO.FileStream fs = new System.IO.FileStream(vectorTileFileName, System.IO.FileMode.Create))
                {
                    EGIS.Mapbox.Vector.Tile.VectorTileParser.Encode(tileLayers, fs);
                }
            }
             

Inheritance Hierarchy

System..::..Object
  EGIS.Web.Controls..::..VectorTileGenerator

See Also