Maps API for JavaScript Developer's Guide

H.map.ArrowStyle.Options

Type Definition Summary

An object containing arrow style initialization options.

[ For full details, see the Type Definition Details ]

Property Summary

Table 1. Properties
Properties

fillColor

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.

width

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 to 1.2.

length

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 to 1.6.

frequency

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 to 5.

Type Definition Description

An object containing arrow style initialization options.

Property Details

fillColor: {string=} [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.

width: {number=} [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 to 1.2.

length: {number=} [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 to 1.6.

frequency: {number=} [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 to 5.