toJS | R Documentation |
This function is used internally by writeMap
to generate Leaflet JavaScript code for a given layer.
toJS(x, url = "")
x |
a |
url |
a character string giving the path for the raster files. |
A character string of JavaScript Code.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.