Tile

class Tile<DataType : TileData>(val coord: TileCoord, var data: Any? = null)

Stores TileCoord, data, hash, state, and bounds

Constructors

Link copied to clipboard
constructor(coord: TileCoord, data: Any? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var data: Any?
Link copied to clipboard

Bytes received over the network on this tile's most recent fetch; -1 if never fetched this session.

Link copied to clipboard
var encodedData: EncodedData?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Triggered when neighboring tiles are loaded so that tilePadding can be added

Link copied to clipboard
Link copied to clipboard

Bytes currently retained as raw tile payload (e.g. native MVT cache); -1 if unknown, 0 if not retained.

Link copied to clipboard
var texInt: Int
Link copied to clipboard

Functions

Link copied to clipboard
fun clone(wrap: Int = 0): Tile<TileData>
Link copied to clipboard
fun dispose()
Link copied to clipboard
open override fun toString(): String