收藏
回答

使用markers定位发现位置偏移

框架类型 问题类型 操作系统 工具版本
小程序 Bug Windows 1.02.1805181



用markers的定位跟实际定位有偏差

下面是我其中的一个坐标点

}, {

id:  7 ,

latitude:  22.552287 ,

longitude:  114.066166 ,

iconPath:  '/image/location.png' ,

title:  '深圳书城'


}]

实际位置



markes定位展示的位置, 与实际为准相差很大





最后一次编辑于  2018-05-23
回答关注问题邀请回答
收藏

3 个回答

  • 超幻家j12581
    超幻家j12581
    2022-11-06

    您好你的这个问题解决了吗

    2022-11-06
    有用
    回复
  • 异想
    异想
    2018-05-23

    @无色  您可能误解我的意思了。我是用map的markes定位坐标点,下面是我其中的一个坐标点

    }, {

    id: 7,

    latitude: 22.552287,

    longitude: 114.066166,

    iconPath: '/image/location.png',

    title: '深圳书城'


    }]

    实际位置



    markes定位展示的位置,与实际为准相差很大




    2018-05-23
    有用
    回复
  • 无色
    无色
    2018-05-23

    注意定位的坐标类型。

    2018-05-23
    有用
    回复 7
    • 异想
      异想
      2018-05-23
      如何设置类型? markers没有看到设置类型功能。代码如下 markers: [{ id: 0 , latitude: 22.550693 , longitude: 114.577373 , iconPath: '/image/location.png' , title: '龙缘潜水(海豚湾潜水中心)' , width: 50 , height: 50 }, { id: 1 , latitude: 22.609228 , longitude: 114.430575 , iconPath: '/image/location.png' , title: '海龙潜水(大鹏基地)' }, { id: 2 , latitude: 22.560104 , longitude: 114.565824 , iconPath: '/image/location.png' , title: '海缘潜店' }, {
      2018-05-23
      回复
    • 无色
      无色
      2018-05-23回复异想
      定位的类型,不是放marker的类型。
      2018-05-23
      回复
    • 异想
      异想
      2018-05-23回复无色
      什么定位类型呀?该如何配置?用什么类型? 谢谢!
      2018-05-23
      回复
    • 无色
      无色
      2018-05-23回复异想
      wx.getLocation(OBJECT),看官方文档,里面有type,各种地图(百度,腾讯坐标系是不一样的)返回的也是不一样的。
      2018-05-23
      回复
    • 异想
      异想
      2018-05-23回复无色
      您可能误解我的意思了,这里回复不了图片, 您看我刚刚主页的回复
      2018-05-23
      回复
    查看更多(2)
登录 后发表内容