
Last chance! 50% off unlimited learning
Sale ends in
computes the necessary number of tiles from a bounding box and a zoom level
NumTiles(lonR, latR, zoom = 13, CheckExistingFiles = TRUE,
tileExt = ".png", tileDir = "~/mapTiles/OSM/",
verbose = 0)
tuple with number of tiles for lon and lat extent
longitude range
latitude range,
zoom level
logical, if TRUE check if files already exist and only download if not!
image type of tile
map tiles are stored in a local directory, e.g. "~/mapTiles/Google/"
level of verbosity
Markus Loecher
if (0){
#US bounding box:
for (zoom in 4:15) {
cat("OSM, zoom =", zoom, "\n")
NumTiles(lonR=c(-135,-66), latR=c(25,54) , zoom=zoom)
}
for (zoom in 4:15) {
cat("Google, zoom =", zoom, "\n")
NumTiles(lonR=c(-135,-66), latR=c(25,54) , zoom=zoom, tileDir= "~/mapTiles/Google/")
}
}
Run the code above in your browser using DataLab