writeMap {rleafmap} | R Documentation |
Export and display the map
Description
This function combines all the elements specified by the user and write the corresponding HTML and Javascript code in a local directory.
Usage
writeMap(
...,
dir = getwd(),
prefix = "",
width = 700,
height = 400,
setView = NULL,
setZoom = NULL,
interface = NULL,
lightjson = FALSE,
directView = c("viewer", "browser", "disabled"),
leaflet.loc = "online",
popup.style = NULL
)
Arguments
... |
|
dir |
a character string giving the directory path to export the map. Default is the working directory. |
prefix |
a character string to add a prefix to file names. This allows multiple exportations in the same directory. |
width , height |
the width and height of the map, in pixels. |
setView |
a numeric vector of the form |
setZoom |
a numeric value setting the initial map zoom. |
interface |
an |
lightjson |
logical. Should GeoJSON files size be reducedby supressing
extra whitespace characters and rounding numeric values? Default is |
directView |
a character string indicating if and how should the map be displayed.
Default option " |
leaflet.loc |
a character string specifying the location (directory) of the leaflet library.
If set to " |
popup.style |
an optional character string of CSS to customize popups content properties (width, color, etc). |