- 当前 Bug 的表现(可附上截图)
- 提供一个最简复现 Demo
< map id = "map" markers = "{{markers}}" longitude = "{{longitude}}" latitude = "{{latitude}}" style = "width: 100%; height:calc(100vh - 122rpx);" bindregionchange = "regionchanges" circles = "{{circles}}" > < cover-view class = "bottom-btn" > < cover-view class = "open-btn" bindtap = "cancleadd" >取消</ cover-view > < cover-view class = "update-btn" bindtap = "addnewlcok" >确定</ cover-view > </ cover-view > < cover-view class = "tcr" > 半径不能低于为500米 </ cover-view > </ map > |
regionchanges: function (e) { let self = this ; if (e.type == 'end' ) { console.log(e) } } |
望官方哥哥,尽快帮忙查看一下问题。在此谢谢
https://developers.weixin.qq.com/community/develop/doc/000ea4cdb9cf686c8c372421751000?highLine=bindregionchange
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
您好,代码片段地址为 wechatide://minicode/JepOT1mp7M2W。从情况上看,初步断定是因为
this.mapCtx.getCenterLocation()这个API造成的。
不好意思,问题已经解决,原因在于地图视野发生变化后,重新设置了地图的中心点造成的
但是不设置地图中心点 end结束后 又自动跳转回原来的位置了 再也无法滑动 导致小程序崩溃