Maps API for JavaScript Developer's Guide

H.service.Platform.DefaultLayersOptions

Type Definition Summary

This type encapsulates options used to create default layers.

[ For full details, see the Type Definition Details ]

Property Summary

Table 1. Properties
Properties

tileSize

Defines the tile size to be queried from the HERE Map Tile API, the default is 256

ppi

A ppi parameter to use when querying tiles, the default is not specified

lg

An identifier of the primary language, the default is not specified

lg2

An identifier of the secondary language, the default is not specified

style

An optional 'style' definition to use when querying map tiles, the default is not specified

pois

A value indicating if POIs are displayed on the map true. By default POIs are disabled.

crossOrigin

The value to use for the crossOrigin attribute of the tile images, if omitted the attribute is set to "anonymous". For more details see MDN web docs. Note that storing of content is not possible if crossOrigin is defined and the value is neither "anonymous" nor "use-credentials"; see also H.Map#storeContent

Type Definition Description

This type encapsulates options used to create default layers.

Property Details

tileSize: {number=} [optional]

Defines the tile size to be queried from the HERE Map Tile API, the default is 256

ppi: {number=} [optional]

A ppi parameter to use when querying tiles, the default is not specified

lg: {string=} [optional]

An identifier of the primary language, the default is not specified

lg2: {string=} [optional]

An identifier of the secondary language, the default is not specified

style: {string=} [optional]

An optional 'style' definition to use when querying map tiles, the default is not specified

pois: {boolean=} [optional]

A value indicating if POIs are displayed on the map true. By default POIs are disabled.

crossOrigin: {?string=} [optional]

The value to use for the crossOrigin attribute of the tile images, if omitted the attribute is set to "anonymous". For more details see MDN web docs. Note that storing of content is not possible if crossOrigin is defined and the value is neither "anonymous" nor "use-credentials"; see also H.Map#storeContent