polygonDrawOptions: Options for Drawing Polygons on the Map

Description Usage Arguments Value Examples

View source: R/polygons.R

Description

Function to return a list of the desired drawing options - you can set all the usual parameters of a call to addPolygons.

Usage

1
2
3
4
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)

Arguments

stroke

Whether to draw the polygon borders.

weight

Stroke width in pixels.

color

Stroke colour.

opacity

Stroke opacity.

fill

Whether to fill the polygons in with colour.

fillColor

The fill colour.

fillOpacity

The fill opacity.

dashArray

A string to define the stroke dash pattern.

smoothFactor

How much to simplify polylines on each zoom level.

noClip

Whether to disable polyline clipping.

Value

A list of options governing how the polygons appear on the map

Examples

1
2
# show the list
polygonDrawOptions()

TargomoR documentation built on Dec. 7, 2019, 1:07 a.m.