Data Lens Developer's Guide

Options

Type Definition Summary

Defines data processing and rendering options for SpatialLayer

Type Definition Description

The initial step of rendering is to split the tile data by rows, where each row represents a bucket. By default this step is processed with H.datalens.SpatialLayer.defaultDataToRows . This behavior can be changed by defining the dataToRows callback.

Property Details

dataToRows : { function( H.datalens.Service.Data , H.datalens.QueryTileProvider.X , H.datalens.QueryTileProvider.Y , H.datalens.QueryTileProvider.Zoom ) : Array.< H.datalens.SpatialLayer.Row > } [optional]

Defines how the input tile data is split by rows. You can specify this callback to define client-side aggregation and filtering. This callback is called for each tile.

rowToSpatialId : { function( H.datalens.SpatialLayer.Row ) : string }

Defines how to get the spatial ID from a data row. This callback is called for each row that is returned from dataToRows .

featureToSpatialId : { function( H.datalens.SpatialLayer.Feature ) : string }

Defines how to get the spatial ID from a geometry feature. This callback is called for each geometry feature in the vector tile.

rowToStyle : { function( H.datalens.SpatialLayer.Row , H.datalens.QueryTileProvider.Zoom , H.datalens.SpatialLayer.StyleState ) : object }

Defines how the row is translated to map object style. This callback is called for each row that is returned from dataToRows .

defaultStyle : { function( H.datalens.QueryTileProvider.Zoom , H.datalens.SpatialLayer.StyleState ) : object }

Defines the default map object style.

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 selfservesupport@here.com.