Geovisualization Developer's Guide

H.datalens. RawDataProvider

Class Summary

Extends: H.map.provider.RemoteTileProvider

Defines how to load data from a raw data file

[ For full details, see the Class Details ]

Class Description

This provider defines the interface for loading data, such as geometries or coordinates, from a local or remote data file in GeoJSON or CSV format
var provider = new H.datalens.RawDataProvider({
   dataUrl: DATA_URL
 });

Constructor Details

H.datalens.RawDataProvider (options)

Parameters:
 
options : { H.datalens.RawDataProvider.Options }
Configures options

Method Details

pushData (data)

This method pushes more data to existing data of the provider. Either 'soft' or 'hard' reload must be invoked afterwards to cause changes on the map.
provider.push(data);
 provider.reload(false); // soft - does not cause toggle of the map objects
Parameters:
 
data : { object }
The raw data

setDataUrl (dataUrl)

Updates the data url. Note that new data will be fetched only after the reload method is called.

Parameters:
 
dataUrl : { string }