V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
工单节点使用指南
? 请用平和的语言准确描述你所遇到的问题
? 厂商的技术支持和你一样也是有喜怒哀乐的普通人类,尊重是相互的
? 如果是关于 V2EX 本身的问题反馈,请使用 反馈 节点
shyx
V2EX  ?  全球工单系统

高德 api 有没有官方群, JS API AMap.Geocoder 错误代码 INVALID_USER_SCODE

  •  
  •   shyx · 141 天前 · 603 次点击
    这是一个创建于 141 天前的主题,其中的信息可能已经有所发展或是发生改变。

    腾讯云最新优惠活动来了:云产品限时1折,云服务器低至88元/年 ,点击这里立即抢购:9i0i.cn/qcloud,更有2860元代金券免费领取,付款直接抵现金用,点击这里立即领取:9i0i.cn/qcloudquan

    (福利推荐:你还在原价购买阿里云服务器?现在阿里云0.8折限时抢购活动来啦!4核8G企业云服务器仅2998元/3年,立即抢购>>>:9i0i.cn/aliyun

    地图显示正常、Marker 功能正常

    export const AmapConfig = {
      key: '****',
      version: '2.0',
      plugins: ['AMap.Geocoder', 'AMap.ElasticMarker', 'AMap.MoveAnimation'],
    };
    
    // Geocoder
    this.geocoder$.subscribe(([geocoder, AMap]) => {
      geocoder.getAddress(
        new AMap.LngLat(116.359119, 39.972121),
        function (status: any, result: any) {
          console.log({ status, result });
    
          if (status === 'complete' && result.regeocode) {
            var address = result.regeocode.formattedAddress;
            console.log({ result, address });
          } else {
            console.error('根据经纬度查询地址失败');
          }
        },
      );
    });
    
    shyx
        1
    shyx  
    OP
       141 天前
    需要密匙配合,结帖
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1446 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:35 · PVG 01:35 · LAX 10:35 · JFK 13:35
    Developed with CodeLauncher
    ? Do have faith in what you're doing.


    http://www.vxiaotou.com