Description Usage Arguments Details
Function to generate tiles for 0.1 degree data
1 2 3 4 5 6 7 8 9 10 11 |
rst |
a SpatRaster or file name to open as a Spatraster to generate tiles from |
fcol |
function to convert raster values into an RGBA matrix - see details |
outdir |
directory into which the tiles are written |
minZ |
lowest zoom level to generate |
maxZ |
maximum zoom level to generate |
w |
width of tiles in pixels |
h |
height of tiles in pixels |
lv |
values used to generage a legend. If |
... |
passed to terra project or terra resample |
This is naive generater. Defaults work well for plotting 0.1 degree data in a limited number of tiles. fcol should take a vector of n values and return an n hex colour values which should include transparency.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.