tile()
Computes the set of 256x256 quadtree tiles to display given the current layout extent, scale and translate. Returns an array of objects with the following properties:
-
x
The integer X coordinate of the tile address. Periodic if wrap is set to true. -
y
The integer Y coordinate of the tile address. -
z
The integer Z coordinate of the tile address (zoom level). -
tx
The X translate to be applied to the tile. This is thex
value multiplied by 256, but without wrapping logic applied. -
ty
The Y translate to be applied to the tile. This is they
value multiplied by 256.
The returned array also has properties scale
and translate
that can be used to apply the correct transformation to the group of tile images. For example usage, see Raster & Vector III.
Please login to continue.