This function combines all the elements specified by the user and write the corresponding HTML and Javascript code in a local directory.
1 2 3 |
... |
|
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 " |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.