Powered by Zoomin Software. For more details please contactZoomin

HERE Maps API for JavaScript - API Reference

Product category
Technology
Doc type
Version
Product lifecycle
This publication

HERE Maps API for JavaScript - API Reference: Class: Service

Table of Contents

Class: Service

new H.service.rasterTile.Service (opt_options)

This class encapsulates a map tile end point of the HERE Raster Tile API v3.

It's not allowed to call the constructor directly (an IllegalOperationError is thrown). Instead an instance of this Service can be retrieved by calling the factory method H.service.Platform#getRasterTileService on a platform instance.

Name Type Description
opt_options H.service.rasterTile.Service.Options optional

Configuration options for Raster Tile Service

Throws:
Example
// Assumption: the platform is instantiated
rasterTileService = platform.getRasterTileService();

Extends

Members

H.service.rasterTile.Service.CONFIG_KEY string staticconstant

The property name to use when specifying options for this service within the H.service.Platform.Options#servicesConfig.

Methods

addEventListener (type, handler, opt_capture, opt_scope) inherited

This method adds a listener for a specific event.

Note that to prevent potential memory leaks, you must either call removeEventListener or dispose on the given object when you no longer need it.

addOnDisposeCallback (callback, opt_scope) inherited

This method adds a callback which is triggered when the EventTarget object is being disposed.

Name Type Description
callback function

The callback function.

opt_scope Object optional

An optional scope for the callback function

dispatchEvent (evt) inherited

This method dispatches an event on the EventTarget object.

Name Type Description
evt H.util.Event | string

An object representing the event or a string with the event name

dispose () inherited

This method removes listeners from the given object. Classes that extend EventTarget may need to override this method in order to remove references to DOM Elements and additional listeners.

getFeatures (onResult, onError)H.util.ICancelable

To get the list of available features per style.

Name Type Description
onResult function(H.service.ServiceResult)

A callback function to be called once the API provides a response to the request.

onError function(Error)

A callback function to be called if a communication error occurs during the request.

Returns:
Type Description
H.util.ICancelable a handle that allows to cancel the request.

getInfo (onResult, onError)H.util.ICancelable

To get information about accepted values of some API parameters.

Name Type Description
onResult function(H.service.ServiceResult)

A callback function to be called once the API provides a response to the request.

onError function(Error)

A callback function to be called if a communication error occurs during the request.

Returns:
Type Description
H.util.ICancelable a handle that allows to cancel the request.

getLanguages (onResult, onError)H.util.ICancelable

To get the list of available map languages per resource.

Name Type Description
onResult function(H.service.ServiceResult)

A callback function to be called once the API provides a response to the request.

onError function(Error)

A callback function to be called if a communication error occurs during the request.

Returns:
Type Description
H.util.ICancelable a handle that allows to cancel the request.

getPoliticalViews (onResult, onError)H.util.ICancelable

To get the list of available geopolitical views.

Name Type Description
onResult function(H.service.ServiceResult)

A callback function to be called once the API provides a response to the request.

onError function(Error)

A callback function to be called if a communication error occurs during the request.

Returns:
Type Description
H.util.ICancelable a handle that allows to cancel the request.

This method returns the configured service URL.

Returns:
Type Description
H.service.Url

removeEventListener (type, handler, opt_capture, opt_scope) inherited

This method removes a previously added listener from the EventTarget instance.

Type Definitions

H.service.rasterTile.Service.Options Object

This type encapsulates configuration options for an instance of the Raster Tile Service.

Properties:
Was this article helpful?
TitleResults for “How to create a CRG?”Also Available inAlert