This class implements a map render engine. It presents a geographic location (look-at data from a view model) and renders all map layers in the order in which they are provided in a single 2D canvas element.
| 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
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. -
This method retrieves the current setting indicating the length of animations (duration) run by the the render engine.
Returns:
Type Description number -
This method retrieves the current setting representing the easing to be applied to animations.
Returns:
Type Description function A numeric value in the range 0 to 1 -
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
-
This method resets animation settings on the render engine to defaults. The
durationis set to 300 ms andeasingtoEASE_OUT_QUAD. -
This method sets the length (duration) for all animations run by the render engine.
Name Type Description durationnumber A value indicating the duration of animations
-
This method sets a value indicating the easing to apply to animations run by the render engine.
Name Type Description easeFunctionfunction(number): number A function that alters the progress ratio of an animation. It receives an argument indicating animation progress as a numeric value in the range between 0 and 1 and must return a numeric value in the same range.
Type Definitions
-
Options that can be used to initialize a new instance of the RenderEngine.
Properties:
Name Type Argument Description renderBaseBackgroundObject <optional>
Object describes how many cached zoom levels should be used as a base map background while base map tiles are
pixelRationumber The pixelRatio to use for over-sampling in cases of high-resolution displays
enableSubpixelRenderingboolean <optional>
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: