Learn R Programming

starsTileServer (version 0.1.1)

targetGrid: Function to calculate a stars grid based on the x,y,z attributes that represents the coordinates of the map tile

Description

Function to calculate a stars grid based on the x,y,z attributes that represents the coordinates of the map tile

Usage

targetGrid(x, y, z, tileSize = 256L)

Value

A stars grid with all values being zero with the dimensions matching those required for the tile specified

Arguments

x

The location of the tile in the x dimension

y

The location of the tile in the y dimension

z

The zoom level

tileSize

The size of the tile generally 256 pixels

Details

This function is mostly useful for testing purpose.

Examples

Run this code
targetGrid(4, 2, 4)
targetGrid(4, 2, 4, 128)

Run the code above in your browser using DataLab