Maps API for JavaScript Developer's Guide

H.map.Icon.Options

Type Definition Summary

Options used to initialize a Icon

[ For full details, see the Type Definition Details ]

Property Summary

Table 1. Properties
Properties

size

The icon's size in pixel, default is the bitmap's natural size

anchor

The anchorage point in pixel, default is bottom-center

hitArea

The area to use for hit detection, default is the whole rectangular area

asCanvas

Indicates whether a non canvas bitmap is converted into a canvas, default is true. The conversion improves the rendering performance but it could also cause a higher memory consumption.

crossOrigin

Specifies whether to use anonynous Cross-Origin Resource Sharing (CORS) when fetching an image to prevent resulting canvas from tainting, default is false. The option is ignored by IE9-10.

Type Definition Description

Options used to initialize a Icon

Property Details

size: {H.math.ISize=} [optional]

The icon's size in pixel, default is the bitmap's natural size

anchor: {H.math.IPoint=} [optional]

The anchorage point in pixel, default is bottom-center

hitArea: {H.map.HitArea=} [optional]

The area to use for hit detection, default is the whole rectangular area

asCanvas: {H.map.HitArea=} [optional]

Indicates whether a non canvas bitmap is converted into a canvas, default is true. The conversion improves the rendering performance but it could also cause a higher memory consumption.

crossOrigin: {boolean}

Specifies whether to use anonynous Cross-Origin Resource Sharing (CORS) when fetching an image to prevent resulting canvas from tainting, default is false. The option is ignored by IE9-10.

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.