尝试使用HereMap API时出现错误
下面的代码行失败:
new H.service.Platform({ apiKey: MY-KEY })下面是相关的堆栈:
mapsjs-core.js:130 Uncaught TypeError: a.jj is not a function
at new Rg (mapsjs-core.js:130)
at eval (eval at <anonymous> (mapsjs-core.js:71), <anonymous>:102:126)
at Object.eval (mapsjs-core.js:71)
at mapsjs-service.js:7
Uncaught InvalidArgumentError: H.geo.Point (Argument #0 undefined)
at new D (https://js.api.here.com/v3/3.1/mapsjs-core.js:43:977)
at Rf (https://js.api.here.com/v3/3.1/mapsjs-core.js:85:714)
at new Wf (https://js.api.here.com/v3/3.1/mapsjs-core.js:86:74)
at Yf (https://js.api.here.com/v3/3.1/mapsjs-core.js:90:49)
at Th.sg (https://js.api.here.com/v3/3.1/mapsjs-core.js:173:573)
at new Th (https://js.api.here.com/v3/3.1/mapsjs-core.js:173:454)
at eval (eval at <anonymous> (https://js.api.here.com/v3/3.1/mapsjs-core.js:71:36), <anonymous>:78:515)
at Object.eval (https://js.api.here.com/v3/3.1/mapsjs-core.js:71:36)
at https://js.api.here.com/v3/3.1/mapsjs-ui.js:7:8
VM360:44 Uncaught TypeError: Un is not a function
at X.Kk (eval at <anonymous> (mapsjs-core.js:71), <anonymous>:44:734)
at new X (eval at <anonymous> (mapsjs-core.js:71), <anonymous>:44:474)
at getPlatform (here-map-wrapper.js:9)看起来现在演示站点上也发生了同样的错误:
https://developer.here.com/documentation/examples/maps-js/maps/map-at-specified-location
有没有办法解决我们可能订阅更新的选项或方式?
更新
看起来这个问题已经稍微改变了。
Uncaught TypeError: this.a.Bb is not a function
at new cp (eval at <anonymous> (mapsjs-core.js:71), <anonymous>:21:767)
at Module.createHereMapInstance (here-map-wrapper.js:42)失败的代码行现在是:
const behavior = new H.mapevents.Behavior(new H.mapevents.MapEvents(map));发布于 2020-04-01 08:02:00
我有用户报告了同样的事情(错误中的字母不同,但错误类型相同)。1个在FireFox上,1个在Chrome上,都是昨天或今天才开始的。但是我们并没有改变我们的网站。
不过,在我个人的chrome和firefox上,这个错误没有显示出来。也不是我的其他开发者的电脑。但今天我有多个客户在处理这个问题。
我试图跟踪它,它似乎特别在JS的这一行触发: var H.mapevents.Behavior= new map(new map(H.mapevents.MapEvents));
https://stackoverflow.com/questions/60959459
复制相似问题