Geovisualization Developer's Guide

H.datalens.SpatialLayer. 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.

transformFeature : { H.datalens.SpatialLayer ~transformFeature }

Defines how to transform the features.