微信公开课
如何看待微信公开课小程序热门讨论「小程序地图不默认显示当前位置」
摘要:小程序地图不默认显示当前位置
展开:viewclassmapViewmapidnearmapcontrols{{controls}}markers{{markers}}bindcontroltapcontrolsClickbindmarkertapmarkerClickbindregionchangeregionChangeshowlocationstylewidth: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信息已经打印出定位成功,但是就是不回到当前点,什么情况?了解更多