Description Usage Arguments Functions Examples
Add tile layers to the map
1 2 3 4 5 | add_osm_tiles(ol, options = layer_options())
add_stamen_tiles(ol, layer = "watercolor", options = layer_options())
add_xyz_tiles(ol, xyz_url, attribution = NULL, options = layer_options())
|
ol |
map widget |
options |
layer options |
layer |
stamen layer name |
xyz_url |
xyz url |
attribution |
attribution (character vector) |
add_osm_tiles
: Add osm tile layer to the map
add_stamen_tiles
: Add stamen tile layer to the map
add_xyz_tiles
: Add custom tile layer to the map
1 2 3 4 5 6 7 8 | ## Not run:
xyz_url <- get_cartodb_xyz_url()
attribution <- cartodb_attribution()
ol() %>%
add_xyz_tiles(xyz_url, attribution)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.