arrowheadOptions | R Documentation |
Additional list of options for polylines with arrowheads. You can also pass options inherited from L.Path
arrowheadOptions(
yawn = 60,
size = "15%",
frequency = "allvertices",
proportionalToTotal = FALSE,
offsets = NULL,
perArrowheadOptions = NULL,
...
)
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 |
A list of options for addArrowhead
polylines
https://github.com/slutske22/leaflet-arrowheads#options
Other Arrowhead Functions:
addArrowhead()
,
clearArrowhead()
,
removeArrowhead()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.