Tile interface

Tile object returned by the map when a source data event occurs.

Properties

id

The ID of the tile.

size

The size of the tile.

state

The state of the tile.

`"loading"`: Tile data is in the process of loading.

`"loaded"`: Tile data has been loaded.

`"reloading"`: Tile data has been loaded and is being updated.

`"unloaded"`: The data has been deleted.

`"errored"`: Tile data was not loaded because of an error.

`"expired"`: Tile data was previously loaded, but has expired per its HTTP headers and is in the process of refreshing.

Property Details

id

The ID of the tile.

id: TileId

Property Value

size

The size of the tile.

size: number

Property Value

number

state

The state of the tile.

`"loading"`: Tile data is in the process of loading.

`"loaded"`: Tile data has been loaded.

`"reloading"`: Tile data has been loaded and is being updated.

`"unloaded"`: The data has been deleted.

`"errored"`: Tile data was not loaded because of an error.

`"expired"`: Tile data was previously loaded, but has expired per its HTTP headers and is in the process of refreshing.

state: "loading" | "loaded" | "reloading" | "unloaded" | "errored" | "expired"

Property Value

"loading" | "loaded" | "reloading" | "unloaded" | "errored" | "expired"