See <https://github.com/roblabs/xyz-raster-sources> for a number of useful values to use for `server_url`.
osm_url_spec(
server_url = "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
block_size = c(256, 256),
min_zoom = 0,
max_zoom = 18,
content_type = NA_character_,
name = NULL
)osm_url_spec_example()
as_osm_url_spec(x, ..., name = NULL)
An object of class osm_url_spec.
A url using `x`, `y`, and `z` for the x, y, and zoom level to be replaced. This can be any URL; non-URLs are assumed to be local file paths relative to the current working directory at the time of the download.
The pixel size of each image
The min/max zoom that this tile specification can handle
A MIME type or NA to guess the type from `server_url`.
A name for this spec. Useful for cache specifications.
An object to convert to an osm_url_spec
Passed to S3 methods