Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

properly scaled and centered (with respect to the center of MyMap ) coordinates

newX

transformed longitude

newY

transformed latitude

Author(s)

Markus Loecher

See Also


RgoogleMaps

Overlays on Static Maps

v1.4.5.3
GPL
Authors
Markus Loecher
Initial release
2020-02-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.