Maps API for JavaScript Developer's Guide

H.map.Imprint

Class Summary

Extends: H.util.Disposable

Implements: H.util.ICapturable

This class encapsulates the brand, copyright and terms of use elements on the map.

[ For full details, see the Class Details ]

Method Summary

Table 1. Methods
Methods

setOptions (opt_options)

To set the imprint options. If no opt_options argument is defined then all values are reset to their defaults.

getCopyrights () : {string}

This method retrieves the copyright string for the current view of the map.

getStyle () : {CSSStyleDeclaration}

To get the CSS style declaration of the imprint DOM element

addOnDisposeCallback (callback, opt_scope)

Method adds a callback which will be triggered when the object is disposed

capture (canvas, pixelRatio, callback, opt_errback)

This method is used to capture the element view

Class Description

This class encapsulates the brand, copyright and terms of use elements on the map.

Constructor Details

H.map.Imprint(map, opt_options)

Parameters:
 
map:
{H.Map}
 
The map where the imprint is attached to
opt_options:
{H.map.Imprint.Options=} [optional]
 
The options to style the imprint

Method Details

setOptions (opt_options)

To set the imprint options. If no opt_options argument is defined then all values are reset to their defaults.

Parameters:
 
opt_options:
{H.map.Imprint.Options=} [optional]
 
The options to style the imprint

getCopyrights () : {string}

This method retrieves the copyright string for the current view of the map.

Returns:
 
{string}
The copyright string for the current map view

getStyle () : {CSSStyleDeclaration}

To get the CSS style declaration of the imprint DOM element

Returns:
 
{CSSStyleDeclaration}

addOnDisposeCallback (callback, opt_scope)

Method adds a callback which will be triggered when the object is disposed

Parameters:
 
callback:
{!Function}
 
opt_scope:
{Object=} [optional]
 

capture (canvas, pixelRatio, callback, opt_errback)

This method is used to capture the element view

Parameters:
 
canvas:
{HTMLCanvasElement}
 
HTML Canvas element to draw the view of the capturable element
pixelRatio:
{number}
 
The pixelRatio to use for over-sampling in cases of high-resolution displays, default is 1
callback:
{function(HTMLCanvasElement=)}
 
Callback function to call once result of the capturing is ready
opt_errback:
{function(string)=} [optional]
 
Callback function to call if error occurred during capturing

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.