This is an abstract class representing a render engine. Render engines are used to render the geographical position from a view model on the screen (viewport element). The rendered result may be different for different engines, because every engine uses its own capabilities and specific implementation to present the current view model data in best possible way. For example, P2D engine creates a two-dimensional flat map composed of raster tiles, while WEBGL engine can render 3D scene based on vector tiles.
A RenderEngine is responsible for managing the rendering loop
as well as for synchronizing rendered data with the view model and the data model.
It manages what is rendered inside the current viewport and how.
| Name | Type | Description |
|---|---|---|
viewPort |
H.map.ViewPort |
An object representing the map viewport |
viewModel |
H.map.ViewModel |
An object representing a view of the map |
dataModel |
H.map.DataModel |
An object encapsulating the data to be rendered on the map (layers and objects) |
options |
H.map.render.RenderEngine.Options |
An object containing the render engine initialization options |
Extends
Implements
Members
-
This object defines the modifiers to use for
H.map.ViewPort#startInteraction.Properties:
Name Description ZOOMchanges zoom level during the interaction
HEADINGchanges heading angle during the interaction
TILTchanges tilt angle during the interaction
INCLINEchanges incline angle during the interaction
COORDchanges map center during the interaction
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
removeEventListenerordisposeon the given object when you no longer need it.Name Type Description typestring The name of the event
handlerfunction An event handler function
opt_captureboolean optional trueindicates that the method should listen in the capture phase (bubble otherwise)opt_scopeObject optional An object defining the scope for the handler function
-
addOnDisposeCallback (callback, opt_scope) inherited
-
This method adds a callback which is triggered when the
EventTargetobject is being disposed.Name Type Description callbackfunction The callback function.
opt_scopeObject optional An optional scope for the callback function
-
dispatchEvent (evt) inherited
-
This method dispatches an event on the
EventTargetobject.Name Type Description evtH.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
EventTargetmay need to override this method in order to remove references to DOM Elements and additional listeners. -
removeEventListener (type, handler, opt_capture, opt_scope) inherited
-
This method removes a previously added listener from the
EventTargetinstance.Name Type Description typestring The name of the event
handlerfunction A previously added event handler
opt_captureboolean optional trueindicates that the method should listen in the capture phase (bubble otherwise)opt_scopeObject optional An object defining the scope for the handler function
Type Definitions
-
Options which may be used to initialize new RenderEngine instance.
Properties:
Name Type Description pixelRationumber The pixelRatio to use for over-sampling in cases of high-resolution displays
Events
-
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: