tiler (version 0.2.1)

view_tiles: 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.

Value

nothing is returned, but the default browser is launched.

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.

See Also

tile_viewer, tile

Examples

Run this code
# NOT RUN {
# launches browser; requires an existing tile set
# }
# NOT RUN {
view_tiles(file.path(tempdir(), "tiles"))
# }

Run the code above in your browser using DataLab