tile()

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 the x value multiplied by 256, but without wrapping logic applied.
  • ty The Y translate to be applied to the tile. This is the y 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.

doc_D3_Js
2016-11-24 10:29:13
Comments
Leave a Comment

Please login to continue.