Map features stored in interactive map layers can be retrieved as tiles. Interactive map layers offer the ability to simplify the geometry of the features in the tiles. This can be useful for reducing the amount of data that needs to be transferred to the client and helps the client to render the data faster.
In this example two very long routes were created using HERE Routing API. The tiles returned by Interactive API, contain a simplified version of the route geometry optimized for the zoom level of the map. There is no visual difference between the original and the simplified geometry at the requested zoom level. However, the simplified geometry contains a significantly reduced number of coordinates.
git clone https://github.com/heremaps/here-interactive-map-layer-examples.git
cd here-interactive-map-layer-examples/examples/simplification
yarn install
Set your HERE platform API Key.
yarn set-api-key <YOUR_API_KEY>
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
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