怎么把地图定位show-location的 小图标在地图中心显示
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 }) }, }) }}) |
定位的那个半圆图标偏移了
