view_tiles: View map tiles with Leaflet

View source: R/viewer.R

view_tilesR Documentation

View map tiles with Leaflet

Description

View map tiles in the browser using leaflet.

Usage

view_tiles(tiles)

Arguments

tiles

character, directory where tiles are stored.

Details

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().

Value

nothing is returned, but the default browser is launched.

See Also

tile_viewer(), tile()

Examples

# launches browser; requires an existing tile set
## Not run: view_tiles(file.path(tempdir(), "tiles"))

ropensci/tiler documentation built on Sept. 14, 2023, 3:05 a.m.