Layer
Usage
bt_layer(
bertin,
data,
fill,
tooltip,
strokeWidth = 0.5,
strokeDasharray = NULL,
stroke = "white",
strokeLinecap = "round",
strokeLinejoin = "round",
fillOpacity = 1,
strokeOpacity = 1,
symbol = "circle",
symbol_size = 5,
symbol_shift = 0,
symbol_iteration = 200,
display = TRUE,
id = NULL
)
Arguments
- bertin
map object
- data
sf object EPSG:4326
- fill
fill color
- tooltip
tooltip allows you to display a label when you fly over an object
- strokeWidth
stroke width
- strokeDasharray
stroke dash array
- stroke
stroke color
- strokeLinecap
appearance of the line cap
- strokeLinejoin
appearance of the intersection beetween two or several lines
- fillOpacity
fill opacity
- strokeOpacity
stroke opacity
- symbol
if it is a dot layer, the type of symbol.circlecrossdiamondsquarestartrianglewye
- symbol_size
if it is a dot layer, a number indicating the size of the symbol
- symbol_shift
if it is a dot layer, use a value > 0 to switch symbols and avoid overlay
- symbol_iteration
Number of iteration to shift symbols
- display
Boolean to allow to show or hide the layer. This parameter has no effect on the calculation of the extent
- id
A unique identifier for the layer, useful to update parameters with proxy in shiny.