Maps API for JavaScript Developer's Guide

H.map.SpatialStyle.Options

Type Definition Summary

Options used to initialize a style. If a property is not set, the default value from H.map.SpatialStyle is taken.

[ For full details, see the Type Definition Details ]

Property Summary

Table 1. Properties
Properties

strokeColor

The color of the stroke in CSS syntax.

fillColor

The color of the stroke in CSS syntax.

lineWidth

The width of the line in pixels, the default is 2. The maximum supported line width is 100.

lineCap

The style of the end caps for a line.

lineJoin

The type of corner created when two lines meet.

miterLimit

The miter limit in pixels, the default is 10. The maximum supported miter limit is 100.

lineDash

The line dash pattern as an even-numbered list of distances to alternate lines (dashes) and spaces. If the browser does not support this feature this property is ignored.

lineDashOffset

The phase offset of the line dash pattern

Type Definition Description

Options used to initialize a style. If a property is not set, the default value from H.map.SpatialStyle is taken.

Property Details

strokeColor: {string=} [optional]

The color of the stroke in CSS syntax.

fillColor: {string=} [optional]

The color of the stroke in CSS syntax.

lineWidth: {number=} [optional]

The width of the line in pixels, the default is 2. The maximum supported line width is 100.

lineCap: {H.map.SpatialStyle.LineCap=} [optional]

The style of the end caps for a line.

lineJoin: {H.map.SpatialStyle.LineJoin=} [optional]

The type of corner created when two lines meet.

miterLimit: {number=} [optional]

The miter limit in pixels, the default is 10. The maximum supported miter limit is 100.

lineDash: {Array<number>}

The line dash pattern as an even-numbered list of distances to alternate lines (dashes) and spaces. If the browser does not support this feature this property is ignored.

lineDashOffset: {number=} [optional]

The phase offset of the line dash pattern