TileBase

new TileBase(url: string, opts: Object)
Parameters
url (string) URL location of TileBase
opts (Object) Options Object
Properties
config (Config) : Read Config Options
config_length (number) : Length of Config in Bytes
start_index (number) : Byte Index to start of Tile Addresses
start_tile (number) : Byte Index to start of Tile Data
version (number) : TileBase Version
isopen (boolean) : Is the TileBase file open
handle ((FileHandle | MemHandle)) : TileBase read options
Static Members
to_tb(input, output)
Instance Members
open()
close()
format()
tilejson()
tile(z, x, y, unzip)

TBError

new TBError(status: number, message: string)

Extends Error

Parameters
status (number) Suggested HTTP Status
message (string) Error Message

Config

new Config(tb: any)
Parameters
tb (any)
Properties
tb (TileBase) : TileBase Object
config (Object)
  • config.min number

    Min Zoom

  • config.max number

    Maz Zoom

  • config.ranges Object

    BBOX Ranges per zoom level

Static Members
write(output, config)
Instance Members
read()
verify()
range()

TileBaseFile

new TileBaseFile(url: string)
Parameters
url (string) Location of TileBase file
Properties
url (string) : Location of TileBase File
Instance Members
read(position, size)

TileBaseS3

new TileBaseS3(url: string)
Parameters
url (string) S3 Location of TileBase file
Properties
url (string) : S3 Location of TileBase File
Instance Members
read(position, size)

TileBaseHTTP

new TileBaseHTTP(url: string)
Parameters
url (string) HTTP Location of TileBase file
Properties
url (string) : HTTP Location of TileBase File
Instance Members
read(position, size)