arrowheadOptions {leaflet.extras2} | R Documentation |
Arrowhead Options
Description
Additional list of options for polylines with arrowheads. You can also pass options inherited from L.Path
Usage
arrowheadOptions(
yawn = 60,
size = "15%",
frequency = "allvertices",
proportionalToTotal = FALSE,
offsets = NULL,
perArrowheadOptions = NULL,
...
)
Arguments
yawn |
Defines the width of the opening of the arrowhead, given in degrees. The larger the angle, the wider the arrowhead. |
size |
Determines the size of the arrowhead. Accepts three types of values:
|
frequency |
How many arrowheads are rendered on a polyline.
|
proportionalToTotal |
Only relevant when size is given as a percent.
Useful when frequency is set to |
offsets |
Enables the developer to have the arrowheads start or end at
some offset from the start and/or end of the polyline. This option can be a list
with 'start' and 'end' names. The values must be strings
defining the size of the offset in either meters or pixels, i.e.
|
perArrowheadOptions |
Enables the developer to customize arrowheads on a
one-by-one basis. Must be in the form of a function of i, which is the
index of the arrowhead as it is rendered in the loop through all
arrowheads. Must return an options object. Cannnot
account for |
... |
Additional options for arrowheads, inherited from L.Path |
Value
A list of options for addArrowhead
polylines
References
https://github.com/slutske22/leaflet-arrowheads#options
See Also
Other Arrowhead Functions:
addArrowhead()
,
clearArrowhead()
,
removeArrowhead()