View source: R/addpoly_legend.R
addbounds | R Documentation |
Quick function for adding styled polygon boundaries layer to a leaflet map, with no fill-in.
addbounds( leafobj, placetype, spatialdf, .color = "black", .weight = 0.5, .opacity = 0.5, labformula = NULL )
leafobj |
Leaflet map adding boundaries layer to. |
placetype |
Group-name as string. |
spatialdf |
Spatial dataframe showing boundaries for |
.color |
Color of polygon boundaries; default "black" |
.weight |
Weight of polygon boundaries; default 0.5 |
.opacity |
Opacity of polygon boundaries; default 0.5 |
labformula |
Label parameter in addPolygons(); e.g., ~ NAME, or leafletwrappers::label_output() results. Default NULL, so no label displayed |
Leaflet map with layer for polygon boundaries added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.