One of the features offered by interactive map layers is data sampling. Data sampling enables clients to efficiently render an excerpt of a very large data set for visual reference and analysis, without the need to retrieve all the data.
This example includes a cadastral map to explore the trees in maintenance of the city of Amsterdam, stored as individual map features. On map zoom levels, where there are too many features, the tiles returned by Interactive API include only a sample with a geographically accurate representation of the data.
git clone https://github.com/heremaps/here-interactive-map-layer-examples.git
cd here-interactive-map-layer-examples
In order to be able to use the HERE Maps API for Javascript with NPM the HERE public repository must be added to the NPM configuration:
yarn config set @here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/
yarn install
Set your HERE platform API Key.
yarn set-api-key <YOUR_API_KEY>
yarn build
To build the examples, serve them locally and open them in the browser use the following command:
yarn start
Copyright (C) 2021-2022 HERE Europe B.V.
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details