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 stroke color in CSS syntax.

fillColor

The fill color in CSS syntax.

lineWidth

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

lineCap

The cap type of the tail and head of a solid line or, in case of a dashed line, for the tail and head of each dash. The type can be overridden by lineTailCap and lineHeadCap.

lineJoin

The type of corner created when two lines meet.

miterLimit

The miter limit in units, the unit is the width of the line. The default is 1. 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

lineTailCap

The cap type of the tail of a solid line or, in case of a dashed line, for the tail of each dash.

lineHeadCap

The cap type of the head of a solid line or, in case of a dashed line, for the head of each dash.

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 stroke color in CSS syntax.

fillColor: {string=} [optional]

The fill color 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 cap type of the tail and head of a solid line or, in case of a dashed line, for the tail and head of each dash. The type can be overridden by lineTailCap and lineHeadCap.

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

The type of corner created when two lines meet.

miterLimit: {number=} [optional]

The miter limit in units, the unit is the width of the line. The default is 1. 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

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

The cap type of the tail of a solid line or, in case of a dashed line, for the tail of each dash.

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

The cap type of the head of a solid line or, in case of a dashed line, for the head of each dash.