Geovisualization Developer's Guide

H.datalens.ObjectLayer. Options

Type Definition Summary

Defines data processing and data-driven styling for ObjectLayer

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.ObjectLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. In the next step each row must be presented as a map object with the rowToMapObject callback. Data-driven styling can be provided with the rowToStyle callback.

Property Details

dataToRows : { function( H.datalens.Service.Data ) : Array.< H.datalens.ObjectLayer.Row > } [optional]

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

rowToMapObject : { function( H.datalens.ObjectLayer.Row , H.datalens.QueryTileProvider.Zoom ) : }

Defines how each row is presented on the map (eg marker, polygon)

rowToStyle : { function( H.datalens.ObjectLayer.Row , H.datalens.QueryTileProvider.Zoom , H.datalens.ObjectLayer.StyleState ) : H.datalens.ObjectLayer.ObjectStyleOptions } [optional]

Defines map object style and icon according to data row and zoom level. Also it can define different styles depending on the StyleState (eg hovered, selected).

dataDomains : { H.datalens.ObjectLayer.DataDomains } [optional]

Defines quantization of data for improving data-driven styling performance

clustering : { H.datalens.ObjectLayer.Clustering } [optional]

When present, client-side clustering is applied

transitionOptions : { function( H.datalens.ObjectLayer.Row ) : H.datalens.ObjectLayer.TransitionOptions } [optional]

Defines how the difference between two coordinate pairs is animated.