View source: R/leaflet_inplace.R
setShapeStyle | R Documentation |
setShapeStyle from https://github.com/rstudio/leaflet/pull/598
setShapeStyle(
map,
data = leaflet::getMapData(map),
layerId,
stroke = NULL,
color = NULL,
weight = NULL,
opacity = NULL,
fill = NULL,
fillColor = NULL,
fillOpacity = NULL,
dashArray = NULL,
smoothFactor = NULL,
noClip = NULL,
options = NULL
)
map |
Leaflet map object |
data |
Leaflet map data |
layerId |
Layer to manipulate |
stroke |
Stroke (bool) |
color |
Shape color |
weight |
Stroke weight (line width) |
opacity |
Stroke opacity |
fill |
Shape fill (bool) |
fillColor |
Fill color |
fillOpacity |
Fill opacity |
dashArray |
NULL |
smoothFactor |
Should shapes and colors be smooth |
noClip |
Allow clipping |
options |
Leaflet options |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.