toJS: Generate Leaflet JS code for a given layer

Description Usage Arguments Value

View source: R/toJS.R

Description

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

Usage

1
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.


rleafmap documentation built on May 2, 2019, 3:43 p.m.