fetch_region: Fetch tile region.

Description Usage Arguments Examples

View source: R/slippymaps.R

Description

Given bounding box, find tiles that span region and stitch them together into a single raster.

Usage

1
fetch_region(lon, lat, provider, cache = TRUE, zoom = 10)

Arguments

lon,lat

Longitude and latitiude ranges

provider

A tile set provider. See providers for possible options

cache

If TRUE, uses cache as described in cache_path

zoom

Zoom level (0-18). Higher numbers produce more detailed graphics, but will require more data to be downloaded.

Examples

1
2
3
4
houston <- fetch_region(c(-95.80204, -94.92313), c(29.38048, 30.14344),
  stamen("terrain"))
houston
plot(houston)

hadley/rastermap documentation built on May 17, 2019, 11:29 a.m.