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: RenderEngine

Table of Contents

Class: RenderEngine

H.map.render.webgl.RenderEngine

new H.map.render.webgl.RenderEngine (viewPort, viewModel, dataModel, options)

This class is an implementation of WebGL render engine. It presents a geo position (from a view model) in a 3D scene, where all layers are rendered in the order in which they are provided.

Extends

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.

geoToMeters (geoPoint)Object

This method retrieves the projected world coordinates corresponding to the geographical coordinates supplied by the caller.

Name Type Description
geoPoint H.geo.IPoint

An object containing the geographical coordinates.

Returns:
Type Description
Object An object representing the results of the conversion to the world coordinates.

getAnimationDuration () Deprecated : since 3.1.24.0

This method was previously retrieving the current animation duration. Now it's deprecated and always returns undefined.

getAnimationEase () Deprecated : since 3.1.24.0

This method was previously retrieving the current animation easing. Now it's deprecated and always returns undefined.

metersToGeo (point)H.geo.IPoint

This method retrieves the geographical coordinates corresponding to the projected world coordinates supplied by the caller.

Name Type Description
point Object

An object defining a location in meters.

Returns:
Type Description
H.geo.IPoint An object representing the results of conversion to a geographical location.

removeEventListener (type, handler, opt_capture, opt_scope) inherited

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

resetAnimationDefaults () Deprecated : since 3.1.24.0

This method was previously used to reset animation settings on the render engine to defaults. Now it's deprecated and doesn't change animation behavior.

setAnimationDuration () Deprecated : since 3.1.24.0

This method was previously setting the duration for all animations run by the render engine. Now it's deprecated and doesn't change animation behavior.

setAnimationEase () Deprecated : since 3.1.24.0

This method was previously setting a value indicating the easing to apply to animations run by the render engine. Now it's deprecated and doesn't change animation behavior.

Type Definitions

H.map.render.webgl.RenderEngine.Options Object

Options that can be used to initialize a new instance of the RenderEngine.

Properties:

Events

render inherited

Fired when one of the layers or the engine (all layers) has been rendered completely. The event target references either the completed layer or the render engine itself.

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