Maps API for JavaScript Developer's Guide

H.map.layer.CanvasLayer.Options

Type Definition Summary

This object encapsulates options which can be used when creating new H.map.layer.CanvasLayer.

[ For full details, see the Type Definition Details ]

Property Summary

Table 1. Properties
Properties

min

The minimum zoom level for which the layer is considered for rendering, the default is 0.

max

The maximum zoom level for which the layer is considered for rendering, the default is 22.

dark

Indicates whether the content of the given layer is mainly dark, the default is false. See also H.Map.Options#autoColor.

contextType

The context identifier defining the drawing context associated to the canvas, default is 2d. Supported types are 2d, webgl, webgl2, experimental-webgl. See https://developer.mozilla.org/en/docs/Web/API/HTMLCanvasElement/getContext#Parameters.

contextAttributes

The rendering context attributes. See https://developer.mozilla.org/en/docs/Web/API/HTMLCanvasElement/getContext#Parameters.

Type Definition Description

This object encapsulates options which can be used when creating new H.map.layer.CanvasLayer.

Property Details

min: {number=} [optional]

The minimum zoom level for which the layer is considered for rendering, the default is 0.

max: {number=} [optional]

The maximum zoom level for which the layer is considered for rendering, the default is 22.

dark: {boolean=} [optional]

Indicates whether the content of the given layer is mainly dark, the default is false. See also H.Map.Options#autoColor.

contextType: {(string | undefined)}

The context identifier defining the drawing context associated to the canvas, default is 2d. Supported types are 2d, webgl, webgl2, experimental-webgl. See https://developer.mozilla.org/en/docs/Web/API/HTMLCanvasElement/getContext#Parameters.

contextAttributes: {(Object | undefined)}

The rendering context attributes. See https://developer.mozilla.org/en/docs/Web/API/HTMLCanvasElement/getContext#Parameters.

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.