开发者社区> 问答> 正文

biz.map.view 是否无效;biz.map.search都没有问题

const dd = window.dd

    dd.ready(function(){
      dd.device.geolocation.get({
      targetAccuracy : 200,
      coordinate : 1,
      withReGeocode : Boolean,
      useCache:true, //默认是true,如果需要频繁获取地理位置,请设置false
      onSuccess : function(result) {
         dd.biz.map.view({
          latitude: result.latitude, // 纬度
          longitude: result.longitude, // 经度
          title: "北京国家广告产业园", // 地址/POI名称
        });
      },
      onFail : function() {}
    })
      
      
    })

展开
收起
游客csiqasycnya3u 2020-06-22 19:34:39 660 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
AutoAlerts-From Data to Action 立即下载
Apache Wicket User Guide - Ref 立即下载
低代码开发师(初级)实战教程 立即下载