Learn R Programming

RgoogleMaps (version 1.2.0.7)

LatLon2XY.centered: computes the centered coordinate transformation from lat/lon to map tile coordinates

Description

The function LatLon2XY.centered(MyMap, lat,lon,zoom) computes the coordinate transformation from lat/lon to map tile coordinates given a map object.

Usage

LatLon2XY.centered(MyMap, lat, lon, zoom)

Arguments

MyMap
map object
lat
latitude values to transform
lon
longitude values to transform
zoom
optional zoom level. If missing, taken from MyMap

Value

MyMap ) coordinates
newX
transformed longitude
newY
transformed latitude

See Also

LatLon2XY Tile2R