view_tiles | R Documentation |
View map tiles in the browser using leaflet.
view_tiles(tiles)
tiles |
character, directory where tiles are stored. |
This function opens preview.html
in a web browser. This file displays
map tiles in a Leaflet widget. The file is created when tile()
is called to
generate the map tiles, unless viewer = FALSE
. Alternatively, it is created
(or re-created) subsequent to tile creation using tile_viewer()
.
nothing is returned, but the default browser is launched.
tile_viewer()
, tile()
# launches browser; requires an existing tile set
## Not run: view_tiles(file.path(tempdir(), "tiles"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.