here-apitangram

Cannot render Here map on browser


I've migrated Here javascript libraries to be able to use api-key (because I can no longer generate appCode and appId on the developper portal). When I try to instanciate the map this way :

    let map = new H.Map(this.$('#map')[0], defaultLayers.raster.satellite.map);

I have the following error : Tangram [error]: Scene.load() failed to load blob:http://localhost:4200/c3b06755-06b8-4a84-b888-9e5b574bb195: e[Symbol.iterator] is not a function TypeError: "e[Symbol.iterator] is not a function".

Ps: I am using Here javascript libraries in an Ember js project.

Thank you in advance for your answers.


Solution

  • If I had to guess, I'd say this part is wrong, this.$('#map')[0]. Did you mean to do $('#map')[0] instead?