question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HERE Maps Example not working properly

See original GitHub issue

Describe the bug The example using HERE map tiles has drop downs from which to choose. Those do not generate a working map view and throw errors in the console.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://openlayers.org/en/latest/examples/here-maps.html
  2. Click on any other display view that is offered by the drop down below the map (e.g.“Normal Day Transit”)
  3. Open up the console which shows a list of 403s (screenshot included)

Expected behavior The map is redrawn according to the choice that was made.

Tested and reproduced on Chrome, Firefox, Edge and Safari. Opening one of those not-found-links leads to an endoint that says:

{
"error": "Forbidden",
"error_description": "These credentials do not authorize access. Please contract your customer representative or email locationapi@here.com to discuss upgrading your account."
}

Maybe the key must be updated?

Screen Shot 2021-02-16 at 16 50 47

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mike-000commented, Jan 11, 2022

https://hostunusual.com/destinations/austria/ is failing because it cannot load ol.js from jsdelivr The code is using tiles from MapTiler. To avoid dependency on other sites it would be better to download the dist.zip for the version you are using from https://github.com/openlayers/openlayers/releases and use it from your server.

1reaction
mike-000commented, Feb 16, 2021

Yes, the old app_id app_code pair is no longer working, and in the latest HERE API is replaced by an API key. It has already been fixed by #11899 Working example at https://deploy-preview-11899--ol-site.netlify.app/examples/here-maps.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - Here maps is not working - Stack Overflow
I just started to implement a sample app that just show HERE Maps. My code: // map embedded in the map fragment private...
Read more >
Guide - HERE Maps API for JavaScript - HERE Developer
This article outlines a number of best practices aiming to help you use the HERE Maps API for JavaScript in the most efficient...
Read more >
Google Maps Platform FAQ
How do I report a problem on the Google basemap? How is performance monitored for the services used with Maps JavaScript API?
Read more >
@impargo/react-here-maps - npm
React Wrapper for the HERE Maps API for JavaScript (v3.0.12.4) ... the GitHub repo and will be documented here, but not yet available...
Read more >
HERE Technologies - Amazon Location Service
By selecting HERE location data, you are selecting accurate, fresh, ... HERE map styles that are not listed in this section are currently...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found