Skip to content

Latest commit

 

History

History
44 lines (22 loc) · 1.49 KB

File metadata and controls

44 lines (22 loc) · 1.49 KB

HERE Interactive Map Layer Examples: Clustering

Interactive map layers offer the capability to retrieve statistical information for the data stored in the layer. Both hexagonal and square grid clustering are supported.

The example shows how interactive map layers are used to demonstrate the density of supermarket coverage in the UK. The supermarket retail points are stored in an interactive map layer. The layer is then queried to retrieve the individual points, the density of all supermarkets, and the density of each supermarket chain.

Clustering with interactive map layers

Live example

Getting Started

Clone this repository

git clone https://github.com/heremaps/here-interactive-map-layer-examples.git

cd here-interactive-map-layer-examples

Install dependencies

yarn install

Set your API key

Set your HERE platform API Key.

yarn set-api-key <YOUR_API_KEY>

Build and launch the examples

To only build the examples, run:

yarn build

Or alternatively, to build the examples, serve them locally and open them in the browser use the following command:

yarn start

License

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