Learn R Programming

OpenStreetMap (version 0.2)

openmap: get a map based on lat long coordinates

Description

get a map based on lat long coordinates

Usage

openmap(upperLeft, lowerRight, zoom = NULL, type = "osm",
    minNumTiles = 9L)

Arguments

upperLeft
the upper left lat and long
lowerRight
the lower right lat and long
zoom
the zoom level. If null, it is determined automatically
type
'osm' for mapnik open street map, or 'bing' for bing aerial
minNumTiles
If zoom is null, zoom will be chosen such that the number of map tiles is greater than or equal to this number.

Examples

Run this code
#Korea
map <- openmap(c(43.46886761482925,119.94873046875),
				c(33.22949814144951,133.9892578125),type='osm')
plot(map,raster=TRUE)

Run the code above in your browser using DataLab