Geovisualization Developer's Guide

H.datalens. SpatialTileProvider

Class Summary

Extends: H.map.provider.RemoteTileProvider

Specifies how to access layer data (shapes, geometries) using the Data Lens REST API.

[ For full details, see the Class Details ]

Class Description

This provider defines the interface for accessing shape layers via the Data Lens REST API. The input data is provided as vector tiles in the MapBox format (Protobuf). Data is loaded by tiles.
var provider = new H.datalens.SpatialTileProvider(
   service,
   {
     layerName: LAYER_NAME
   }
 );
 var layer = new H.map.layer.TileLayer(provider);

Constructor Details

H.datalens.SpatialTileProvider (service, options)

Parameters:
 
service :
{ H.datalens.Service }
Data Lens REST API service
options :
{ H.datalens.SpatialTileProvider.Options }
Configures layer name

Property Details

static VectorTile

Method Details

setLayerName (layerName)

Updates the layer name 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:
 
layerName :
{ 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

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.