This class represents style attributes for arrows to be rendered along a polyline.
An instance of ArrowStyle is always treated as immutable to avoid inconsistencies and must not modified.
| Name | Type | Description |
|---|---|---|
opt_options |
H.map.ArrowStyle | H.map.ArrowStyle.Options |
optional
An object containing initialization options |
Methods
-
This method checks value-equality between the given object and an instance of
ArrowStyleprovided by the caller.Name Type Description otherH.map.ArrowStyle | H.map.ArrowStyle.Options The arrow style object with which to compare the given object
Returns:
Type Description boolean trueif the objects are value-equal, otherwisefalse
Type Definitions
-
An object containing arrow style initialization options.
Properties:
Name Type Argument Description fillColorstring <optional>
The CSS color value used to fill the arrow shapes. If omitted or if it evaluates to
false, the default color"rgba(255, 255, 255, 0.75)"is used.widthnumber <optional>
The width of the arrow shape. The value is taken as a factor of the width of the line, where the arrow description is applied. If omitted or the value is
<= 0, it defaults to1.2.lengthnumber <optional>
The length of the arrow shapes. The value is taken as a factor of the width of the line at the end of which the arrow is drawn. If omitted or the value is
<= 0, it defaults to1.6.frequencynumber <optional>
The frequency of arrow shapes. The value is taken as factor of the length of the arrow. A value of 1 results in gapless arrows. If omitted or the value is
false, it defaults to5.