Skip to contents

retrieve a 3 dimensional (RGB or other) array for the canvas region.

Usage

map_drape(res, src = "wms_virtualearth", alpha = 1, resample = "Average", ...)

Arguments

res

The desired cell resolution of the matrix in canvas CRS units.

src

Default is 'wms_virtualearth'. The server from which to download map data. use raytrix::map_sources() to see available built in sources (provided by gdalwebsrv) or provide your own source. See details...

alpha

default 1, set transparency of overlay data.

Details

See https://github.com/hypertidy/gdalio and https://gdal.org/drivers/raster/wms.html for examples of custom sources from the web. Alternatively, you can download a file and specify the local path.