Description Usage Arguments Value
Create a Leaflet map widget with multiple map layers and control
1 |
map |
a data object (currently supported objects are matrices, data frames, and spatial objects from the sp package of classes SpatialPoints, SpatialPointsDataFrame, Polygon, Polygons, SpatialPolygons, SpatialPolygonsDataFrame, Line, Lines, SpatialLines, and SpatialLinesDataFrame) |
choices |
a character vector specify the column name of map data which being used as a color scale |
popupcol |
a string specify the column name of map data which being used as a pop-up window |
palette |
The colors or color function that values will be mapped to |
A HTML widget object, on which we can add graphics layers using
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.