[Vuejs]-Map component occasionally throws an error: Uncaught (in promise), "H.map.DataModel#add (Argument #0 [object Object])"

0👍

Yes, we have a blog how to implement HERE JS API into VueJs but basically we don’t realize а technically support an integration of third part libraries/frameworks with HERE JS API.

But any way some recommendations:

  1. Please include all HERE JS libraries (mapsjs-core.js, mapsjs-service.js etc.) into the <head> HTML element like in our examples https://developer.here.com/documentation/examples/maps-js
  2. Please keep the description how to initialize the map in our blog https://developer.here.com/blog/showing-a-here-map-with-the-vue.js-javascript-framework. There is "Because the map is a DOM component, we need to wait until the components have rendered before we try to work with it, so we can’t do it in the created method. Instead we can use the mounted method". But in your code you use created method.
  3. Keep in mind that HERE map container element should not be part of Virtual DOM of Vue

Leave a comment