toJS {rleafmap}R Documentation

Generate Leaflet JS code for a given layer

Description

This function is used internally by writeMap to generate Leaflet JavaScript code for a given layer.

Usage

toJS(x, url = "")

Arguments

x

a spl or basemap object.

url

a character string giving the path for the raster files.

Value

A character string of JavaScript Code.


[Package rleafmap version 0.2.1 Index]