powered by
Function to calculate a stars grid based on the x,y,z attributes that represents the coordinates of the map tile
targetGrid(x, y, z, tileSize = 256L)
A stars grid with all values being zero with the dimensions matching those required for the tile specified
The location of the tile in the x dimension
The location of the tile in the y dimension
The zoom level
The size of the tile generally 256 pixels
This function is mostly useful for testing purpose.
targetGrid(4, 2, 4) targetGrid(4, 2, 4, 128)
Run the code above in your browser using DataLab