收藏
回答

微信小程序地图不能导航

框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小程序 Bug iOS IOS iphone 6 6.6.5

- 当前 Bug 的表现(可附上截图)



点击marker标记,不显示  “去这里” 按钮!

- 预期表现


- 复现路径


- 提供一个最简复现 Demo

onLoad: function () {

console.log('地图定位!')

let that = this

wx.getLocation({

type: 'gcj02', //返回可以用于wx.openLocation的经纬度

success:(res)=>{

console.log(res)

let latitude = res.latitude;

let longitude = res.longitude;

let marker=this.createMarker(res);

this.moveToLocation();

this.setData({

longitude:longitude,

latitude:latitude,

markers: [{

iconPath: "/image/mark.png",

latitude: '29.71798',

longitude: '106.63043',

title: '重庆政法大学'

}],

hasMarkers:true

});

}

});

}


回答关注问题邀请回答
收藏

2 个回答

  • Miao
    Miao
    2019-09-07

    小程序可以通过    webview     控件调用H5网页可以实现.


    大家可以尝试下易景空间地图导航   https://www.esmap.cn


    2019-09-07
    有用
    回复
  • 疯狂的小辣椒
    疯狂的小辣椒
    2018-05-22

    安卓设备是否测试过?麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题

    2018-05-22
    有用
    回复 1
    • 郭二狗
      郭二狗
      2018-05-22
      谢谢,问题找到了,marker没有id!
      2018-05-22
      回复
登录 后发表内容