Description Usage Arguments Details Value Author(s) See Also Examples
Generates tiles and a tile-based slippy map based on the Leaflet Javascript library, from a Raster class object.
1 | slippyRaster(rst, zoom = c(3, 9), output, col = rev(terrain.colors(255)), browse = TRUE)
|
rst |
The Raster dataset - should be in WGS84 projection. |
zoom |
A vector containing the minimum and maximum zoom levels (1-16). |
output |
Location for tile output. |
col |
Colour palette definition for object. By default, the same as for standard plot.raster output. |
browse |
Launch a browser to display the map when complete. |
Currently renders a raster to tiles, produces the HTML/Javascript code to display it. No projection of raster into the correct coordinate system currently takes place, so geographic WGS84 rasters are required. Note that there is a web Mercator error at small scales that I'm working on fixing.
Launches a browser window displaying the map, and returns the location of the index.html file.
Grant Williamson
slippySpatial
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.