Geovisualization Developer's Guide

H.datalens. RasterLayer

Class Summary


Provides pixel-wise rendering of data.

[ For full details, see the Class Details ]

Class Description

Layer used when you need to visualize more then 10k points. The layer requires source data to be located in pixel coordinates. The rendering is implemented by drawing directly on a canvas. The layer is often used together with a Data Lens query which groups rows by pixels. This reduces the amount of data delivered to the client.

Constructor Details

H.datalens.RasterLayer ()

Property Details

static defaultDataToRows

Default value for dataToRows callback option. It represents each row as an object where property names correspond to data column names.
var layer = new H.datalens.RasterLayer(
     dataToRows: function(data) {
       return H.datalens.RasterLayer.defaultDataToRows(
       ).filter(function() {

Method Details

redraw ()

Force re-rendering of the layer. In the case where the callbacks passed to the layer options are not pure functions, you can call this method to force re-rendering.

static defaultRenderTile (points, canvas)

This is a default implementation of renderTile callback. This method represents each point as a black 1x1 pixel square.

points :
{ Array.< H.datalens.RasterLayer.TilePoint > }
Input data points within a tile
canvas :
{ HTMLCanvasElement }
The target canvas

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on