This class encapsulates the brand, copyright and terms of use information displayed on the map.
| Name | Type | Description |
|---|---|---|
map |
H.Map |
The map object with which the imprint information is associated |
opt_options |
H.map.Imprint.Options |
optional
The configuration options for the imprint information |
Extends
Implements
Methods
-
Method adds "Terms of use" L11N string to the available collection.
Name Type Description tagstring IETF language tag
valuestring localisation string
-
addOnDisposeCallback (callback, opt_scope) inherited
-
This method adds a callback which to be triggered when an object is disposed.
Name Type Description callbackfunction A callback function to add
opt_scopeObject optional An object representing the scope
-
This method is used to capture the element view.
Name Type Description canvasHTMLCanvasElement The HTML Canvas element to draw the view of the capturable element.
pixelRationumber The pixel ratio to use for over-sampling for high-resolution displays, the default is
window.devicePixelRatio.callbackfunction(HTMLCanvasElement) A callback function to call once the result of capture is ready.
opt_errbackfunction(string) optional A callback function to call if error occurred during capture.
-
dispose () inherited
-
Disposes of the object. If the object hasn't already been disposed of, calls
H.util.Disposable#disposeInternal. Child classes should override thedisposeInternalin order to cleanup references, resources and other disposable data. -
Performs appropriate cleanup.
-
This method retrieves the copyright string for the current view of the map.
Returns:
Type Description string The copyright string for the current map view -
This method sets the imprint options. If the argument
opt_optionsis not defined, then all values are reset to defaults.Name Type Description opt_optionsH.map.Imprint.Options optional The options to style the imprint
Type Definitions
-
This object encapsulates the initialization options that style imprint information.
Properties:
Name Type Argument Description invertboolean <optional>
Indicates whether the logo is inverted. If omitted, the current value remains, the default is
false.fontstring <optional>
The font of the text. If omitted, the current value remains, the default is
11px "Lucida Grande", Arial, Helvetica, sans-serif.hrefstring <optional>
The URL of the "Terms of use" link. If omitted, the current value remains, the default is "https://here.com/terms".
localestring <optional>
IETF language tag for the "Terms of use" translation. Available default languages are: "de-DE", "en-US", "en-GB", "es-ES", "fi-FI", "fr-FR", "it-IT", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ru-RU", "tr-TR", "zh-CN". If value is omitted options defaults to "en-US"
markstring <optional>
A text that will be appended to the content of the imprint. It can be used to add a legal note, for example, like in Chinese builds where the default value of the
markproperty is the ministerial Map Review Approval"GS (2022) 5659".