powered by
This function is used internally by writeMap to generate Leaflet JavaScript code for a given layer.
writeMap
toJS(x, url = "")
A character string of JavaScript Code.
a spl or basemap object.
spl
basemap
a character string giving the path for the raster files.