Maps API for JavaScript Developer's Guide

H.Map.Options

Type Definition Summary

This type defines options which can be used to initialize the map.

[ For full details, see the Type Definition Details ]

Property Summary

Table 1. Properties
Properties

center

The initial center of the map, default is {lat:0, lng: 0}

zoom

The initial zoom level of the map, default is 0 respectively the minimal zoom level of the base map

bounds

The view bounds to be displayed on the map. If provided, it takes precedence over center and zoom. and zoom if provided)

layers

A list of layers to render on top of the base map

engineType

The initial engine type to use, default is P2D

pixelRatio

The pixelRatio to use for over-sampling in cases of high-resolution displays, default is 1

imprint

The imprint options or null to suppress the imprint

renderBaseBackground

Object describes how many cached zoom levels should be used as a base map background while base map tiles are loading. Example: {lower: 3, higher: 2}

autoColor

Indicates whether the UI's colors should automatically adjusted to the base layer, default is true. Up to now only the copyright style will be adjusted. See H.map.layer.Layer.Options#dark

margin

The size in pixel of the supplemental area to render for each side of the map

padding

The padding in pixels for each side of the map

fixedCenter

Indicates whether the center of the map should remain unchanged if the viewport's size or padding has been changed, default is true

Type Definition Description

This type defines options which can be used to initialize the map.

Property Details

center: {H.geo.IPoint=} [optional]

The initial center of the map, default is {lat:0, lng: 0}

zoom: {number=} [optional]

The initial zoom level of the map, default is 0 respectively the minimal zoom level of the base map

bounds: {H.geo.Rect=} [optional]

The view bounds to be displayed on the map. If provided, it takes precedence over center and zoom. and zoom if provided)

layers: {Array<H.map.layer.Layer>=} [optional]

A list of layers to render on top of the base map

engineType: {H.Map.EngineType=} [optional]

The initial engine type to use, default is P2D

pixelRatio: {number}

The pixelRatio to use for over-sampling in cases of high-resolution displays, default is 1

imprint: {?H.map.Imprint.Options=} [optional]

The imprint options or null to suppress the imprint

renderBaseBackground: {H.Map.BackgroundRange=} [optional]

Object describes how many cached zoom levels should be used as a base map background while base map tiles are loading. Example: {lower: 3, higher: 2}

autoColor: {boolean=} [optional]

Indicates whether the UI's colors should automatically adjusted to the base layer, default is true. Up to now only the copyright style will be adjusted. See H.map.layer.Layer.Options#dark

margin: {number=} [optional]

The size in pixel of the supplemental area to render for each side of the map

padding: {H.map.ViewPort.Padding=} [optional]

The padding in pixels for each side of the map

fixedCenter: {boolean=} [optional]

Indicates whether the center of the map should remain unchanged if the viewport's size or padding has been changed, default is true

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.