Namespace: render

H.map.render

Contains functionality for the map rendering

Classes

RenderEngine
Style

Namespaces

harp
p2d
webgl

Members

H.map.render.RenderState static

The rendering states of the layer.

Properties:
Name Description
PENDING

Data loading/processing is still in progress, but there is nothing to render. In this state rendering engine might go to sleep mode after certain amount of time to prevent draining of battery on the user device.

ACTIVE

Data rendering or animation is in progress.

DONE

Data rendering or animation is done.

Type Definitions

H.map.render.RenderingParams Object

An object containing rendering parameters.

Properties:
Name Type Description
boundingBox H.geo.Rect

The rectangular geographical area to render. Note that it is not the same as visible viewport. The bounding box also include H.Map.Options#margin and optionally an additional margin in case of DOM-node rendering for a better rendering experience.

zoom number

The zoom level to render the data for.

screenCenter H.math.Point

The coordinates of the screen center in CSS pixels.

priorityCenter H.math.Point

The coordinates relative to the screen center where the rendering has the highest priority. If the layer has to request and/or process data asynchronously, it's recommended to prioritize the rendering close to this center.

projection H.geo.PixelProjection

The pixel projection to use to project geographical coordinates into screen coordinates and vice versa.

cacheOnly boolean

Indicates whether only cached data should be considered.

size H.math.Size

The size of the area to render.

pixelRatio number

The pixelRatio to use for over-sampling in cases of high-resolution displays.

Interface Definitions

H.map.render.ICapabilities

This interface describes render engine capabilities, such as the minimum and maximum zoom level, camera angles, etc.