osm_url | R Documentation |
Resolve a tile into a URL
osm_url(tile, spec)
tile |
A 'data.frame()' with columns 'x', 'y', and 'zoom'. |
spec |
An [osm_url_spec()] |
A character vector of URLs
bounds <- wk::rct(
-7514064, 5009380,
-6261722, 6261715,
crs = osm_crs_native()
)
tiles <- osm_tile_covering(bounds, zoom = 6)
osm_url(tiles, osm_url_spec())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.