osm_url_spec | R Documentation |
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)
server_url |
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. |
block_size |
The pixel size of each image |
min_zoom, max_zoom |
The min/max zoom that this tile specification can handle |
content_type |
A MIME type or NA to guess the type from 'server_url'. |
name |
A name for this spec. Useful for cache specifications. |
x |
An object to convert to an osm_url_spec |
... |
Passed to S3 methods |
An object of class osm_url_spec.
osm_url_spec()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.