Follow the next steps to add a MapboxGL map to the JS web application and display the HERE Maps tiles.
Include the GL JS CSS file in the
<head> of the
styles.css file under the
Create a new
.config file to store access tokens.
Next, add the map container in the
Add the map initialization in the
index.js file. Replace
YOUR-MAPBOX-TOKEN in the
.config file with a valid Mapbox token.
Note Follow this link to learn how you can get a Mapbox access token.
Update the style property to display the HERE Maps tiles. Replace
YOUR-HERE-MAPS-API-KEY in the
.config file with a valid HERE Maps API key.
Note Follow these steps to otain a
HERE Maps API key.
Now, you should be able to view the map.