Class: Tile

new H.map.provider.Tile (x, y, z, data)

This class defines a generic tile object which represents a part of the world that fits into the tile area represented by the tile coordinates (x - row, y - column) and the zoom level (z). The number of tiles at a particular zoom level (which means number of areas into which world is divided) equals numberOfRows = numberOfColumns = 2^zoomlevel.

Name Type Description
x number

The x tile coordinate (row)

y number

The y tile coordinate (column)

z number

The tile zoom level

data *

A generic data object which corresponds to the supplied coordinates

Members

data *

This property holds the tile data (for example an image).

key string

This property holds a unique tile key generated by provider.

valid boolean

This property holds a Boolean flag indicating whether the tile is still valid (true) or whether it should be re-fetched (false).

x number

This property holds the tile column.

y number

This property holds the tile row.

z number

This property holds the tile zoom level.