Class: Tile¶
Defined in: sandbox-core.d.ts:77
A slippy-map tile identified by zoom z and column/row x/y
(Bing/web-mercator quadkey scheme).
Indexable¶
[
key:number]: () =>void
Constructors¶
Constructor¶
new Tile(
z,x,y):Tile
Defined in: sandbox-core.d.ts:98
Create a tile from zoom z and tile coordinates x, y.
Parameters¶
z¶
number
x¶
number
y¶
number
Returns¶
Tile
Properties¶
x¶
readonlyx:number
Defined in: sandbox-core.d.ts:106
Tile column.
y¶
readonlyy:number
Defined in: sandbox-core.d.ts:110
Tile row.
z¶
readonlyz:number
Defined in: sandbox-core.d.ts:114
Zoom level.
Methods¶
bbox()¶
bbox():
BBox
Defined in: sandbox-core.d.ts:83
The tile's geographic bounds as a BBox.
Returns¶
children()¶
children():
Tile[]
Defined in: sandbox-core.d.ts:87
The four child tiles at z + 1.
Returns¶
Tile[]
free()¶
free():
void
Defined in: sandbox-core.d.ts:78
Returns¶
void
quadkey()¶
quadkey():
string
Defined in: sandbox-core.d.ts:102
The tile's quadkey string.
Returns¶
string
fromQuadkey()¶
staticfromQuadkey(qk):Tile
Defined in: sandbox-core.d.ts:94
Parse a tile from a quadkey string.
Throws if the quadkey contains characters other than 0-3
or is longer than 30 digits.
Parameters¶
qk¶
string
Returns¶
Tile