Geo-visualization Developer's Guide

QueryProvider

Class Summary

Extends: H.datalens.Provider

Defines the source of the data for layers from a Data Lens query.

[ For full details, see the Constructor 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 loads query data with the Data Lens REST API. Note that this provider must be used only for non-tiled queries.

Constructor Details

H.datalens.QueryProvider (service, options)

Parameters:
 
service :
{ H.datalens.Service }
Data Lens REST API service
options :
{ H.datalens.QueryProvider.Options }
Configures source query and data accessibility parameters

Method Details

setQueryId (queryId)

Updates the query ID to be used in the next call of the Data Lens REST API. Note that new data will be fetched only after the reload method is called.

Parameters:
 
queryId :
{ string }

setQueryParams (queryParams)

Updates the query's dynamic parameters to be used in the next call of the Data Lens REST API. Note that new data will be fetched only after the reload method is called. This method is normally used when updating your visualization.
provider.setQueryParams({min_magnitude: 3});
provider.reload();
Parameters:
 
queryParams :
{ object | null }
Query dynamic parameters

reload ()

Fetches new data from the Data Lens REST API. When data is fetched, the update event is triggered so that the consuming layers are redrawn.

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

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.