<view class="mapView">
<map id="nearmap" controls="{{controls}}" markers="{{markers}}" bindcontroltap="controlsClick" bindmarkertap="markerClick" bindregionchange="regionChange" show-location style="width:100%;height:80%;"></map>
</view>
然后在定位成功之后
wx.getLocation({
success: function (res) {
console.log("定位成功");
that.mapctx.moveToLocation();
},
fail: function (res) {
console.log('定位失败');
console.log(res.data);
}
})
log信息已经打印出定位成功,但是就是不回到当前点,什么情况?