Function writeOVTile

  • Write a tile to a Protobuf. and return a buffer

    Parameters

    • tile: BaseVectorTile | VectorTile = ...

      the tile may be a base vector tile or a S2/Mapbox vector tile

    • Optionalimage: ImageDataInput

      if provided, the tile will include an image

    • verbose: boolean = false

      whether to print debug messages

    Returns Uint8Array

    • a protobuffer encoded buffer using the Open Vector Tile Spec