首页 新闻 赞助 找找看

微信小程序开发问题

0
[已关闭问题] 关闭于 2018-03-20 10:27

个人开发的一个展示型的小程序,有个点击导航就跳转到地图页面的功能,然后加上AppID后这个功能失效了,怎么点都没反应.

openMap: function () {
wx.getLocation({
type: 'gcj02', // 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于 wx.openLocation 的坐标
success: function (res) {
console.log("打开地图!" + res.latitude)
// success
wx.openLocation({
latitude: res.latitude, // 纬度,范围为-90~90,负数表示南纬
longitude: res.longitude, // 经度,范围为-180~180,负数表示西经
scale: 28, // 缩放比例
})
}
})
},
码农老黄的主页 码农老黄 | 初学一级 | 园豆:34
提问于:2018-03-19 17:24
< >
分享
所有回答(1)
0

q权限问题

码农老黄 | 园豆:34 (初学一级) | 2018-03-20 10:26
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册