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, 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 pixel, default is 10. The maximum supported miter limit is 100

lineDash

The line dash pattern as an even numbered list of distances to alternately produce a line and a space. If the browser doesn't support this feature this style 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, 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 pixel, 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 alternately produce a line and a space. If the browser doesn't support this feature this style property is ignored.

lineDashOffset: {number=} [optional]

The phase offset of the line dash pattern

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.