powered by
Function to return a list of the desired drawing options - you can set all the usual parameters of a call to addPolygons.
addPolygons
polygonDrawOptions(stroke = TRUE, weight = 5, color = c("red", "orange", "green"), opacity = 0.5, fill = TRUE, fillColor = color, fillOpacity = 0.2, dashArray = NULL, smoothFactor = 1, noClip = FALSE)
Whether to draw the polygon borders.
Stroke width in pixels.
Stroke colour.
Stroke opacity.
Whether to fill the polygons in with colour.
The fill colour.
The fill opacity.
A string to define the stroke dash pattern.
How much to simplify polylines on each zoom level.
Whether to disable polyline clipping.
A list of options governing how the polygons appear on the map
# NOT RUN { # show the list polygonDrawOptions() # }
Run the code above in your browser using DataLab