knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

Codecov test coverage

Download and plot Open Street Map, Bing Maps, and other tiled map sources. A previous version of this package provided an API for plotting base maps; the new API is more low-level and covers tile math, URL generation, and fetching tiles in parallel.

Installation

The rosm package is available on CRAN, and can be installed using install.packages("rosm").

Example

library(rosm)

bounds <- wk::rct(
  -7476083, 5349058,
  -6594103, 6243203,
  crs = osm_crs_native()
)

(grd <- osm_raster(bounds, osm_url_spec_example()))
plot(grd)


paleolimbot/rosm documentation built on Aug. 31, 2023, 7:35 p.m.