Geovisualization Developer's Guide

H.datalens. Provider

Class Summary

Extends: H.map.provider.Provider

Defines the source of the data for layers from a JSON object.

[ For full details, see the Class Details ]

Class Description

Providers define interfaces for layers to access data. The input data can be stored locally or loaded from the network. Data can be loaded by tiles or in one chunk. This provider allows you to supply data stored locally or fetched using external tools.
var provider = new H.datalens.Provider(json);
val layer = new H.datalens.ObjectLayer(provider, {...});

Constructor Details

H.datalens.Provider (data, options)

Parameters:
 
data :
{ H.datalens.Service.Data }
JSON object
options :
{ H.map.provider.Provider.Options }
Configures data accessibility parameters

Method Details

setData (data)

Updates the provider data. When data is updated, the update event is triggered so that the consuming layers are redrawn.

Parameters:
 
data :
{ H.datalens.Service.Data }
JSON object

getData () : { H.datalens.Service.Data }

Retrieves the provider data.

Returns:
 
:
{ H.datalens.Service.Data }
JSON object