为了账号安全,请及时绑定邮箱和手机立即绑定

关于高德地图webAPI AdvancedInfoWindow加上Key就报错!

关于高德地图webAPI AdvancedInfoWindow加上Key就报错!

千巷猫影 2018-12-28 17:14:54
案例地址:http://lbs.amap.com/api/javas...加上我的开发者key 点击就有报错 无法正常使用报错:Uncaught TypeError: Cannot read property 'addressComponent' of undefined    at c.eval (eval at <anonymous> (http://webapi.amap.com/maps?v=1.3&keyee0c2ec9cd719c1c0adaef80f89b5aa8&plugin=AMap.AdvancedInfoWindow:21:183), <anonymous>:138:240)    at c.w (eval at <anonymous> (http://webapi.amap.com/maps?v=1.3&keyee0c2ec9cd719c1c0adaef80f89b5aa8&plugin=AMap.AdvancedInfoWindow:21:183), <anonymous>:32:355)    at window.(anonymous function) (eval at Lk (eval at <anonymous> (http://webapi.amap.com/maps?v=1.3&keyee0c2ec9cd719c1c0adaef80f89b5aa8&plugin=AMap.AdvancedInfoWindow:21:183)), <anonymous>:1:1453)    at http://restapi.amap.com/v3/geocode/regeo?&extensions=&&key=&s=rsv3&output=j…indow-has-search-function%2F&csid=C743482F-80BB-46BF-B412-7C985025F8B0:1:1报错截图:配置域名
查看完整描述

1 回答

?
呼啦一阵风

TA贡献1802条经验 获得超6个赞

是要在key所对应的域名下才生效

查看完整回答
反对 回复 2019-01-24
  • 1 回答
  • 0 关注
  • 1471 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信