首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >HereMaps JS api失败

HereMaps JS api失败
EN

Stack Overflow用户
提问于 2020-04-01 04:35:24
回答 1查看 487关注 0票数 1

尝试使用HereMap API时出现错误

下面的代码行失败:

代码语言:javascript
复制
new H.service.Platform({ apiKey: MY-KEY })

下面是相关的堆栈:

代码语言:javascript
复制
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

有没有办法解决我们可能订阅更新的选项或方式?

更新

看起来这个问题已经稍微改变了。

代码语言:javascript
复制
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)

失败的代码行现在是:

代码语言:javascript
复制
const behavior = new H.mapevents.Behavior(new H.mapevents.MapEvents(map));
EN

回答 1

Stack Overflow用户

发布于 2020-04-01 08:02:00

我有用户报告了同样的事情(错误中的字母不同,但错误类型相同)。1个在FireFox上,1个在Chrome上,都是昨天或今天才开始的。但是我们并没有改变我们的网站。

不过,在我个人的chrome和firefox上,这个错误没有显示出来。也不是我的其他开发者的电脑。但今天我有多个客户在处理这个问题。

我试图跟踪它,它似乎特别在JS的这一行触发: var H.mapevents.Behavior= new map(new map(H.mapevents.MapEvents));

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60959459

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档