Learn R Programming

rleafmap (version 0.2.1)

toJS: 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 = "")

Value

A character string of JavaScript Code.

Arguments

x

a spl or basemap object.

url

a character string giving the path for the raster files.