Maps API for JavaScript Developer's Guide

H.map.Icon.Options

Type Definition Summary

Options used to initialize an Icon object.

[ For full details, see the Type Definition Details ]

Property Summary

Table 1. Properties
Properties

size

The size in pixels of the icon, the default is the natural size of the bitmap

anchor

The anchorage point in pixels, the default is bottom-center

hitArea

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

asCanvas

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

crossOrigin

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

Type Definition Description

Options used to initialize an Icon object.

Property Details

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

The size in pixels of the icon, the default is the natural size of the bitmap

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

The anchorage point in pixels, the default is bottom-center

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

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

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

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

crossOrigin: {boolean}

Specifies whether to use anonymous Cross-Origin Resource Sharing (CORS) when fetching an image to prevent the resulting canvas from tainting, the 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.