wxml:
< map longitude = "{{long}}" latitude = "{{lati}}" show-location style = "width:100%; height:100vh" /> |
js:
Page({ data: { long:0, lati:0 }, onLoad: function () { var that= this wx.getLocation({ success: function (res) { that.setData({ long:res.longitude, lati:res.latitude }) }, }) } }) |
定位的那个半圆图标偏移了
楼主 解决这个问题了没有啊 我也遇到了
这个问题也有可能是开发工具上的BUG吧,你能把你的代码发上来给我们看看分析一下是什么原因吗?