微信升级7.0.5后地图bug
在没开GPS的情况下,地图里嵌套canvas,并且调用wx.createMapContext(‘myMap’)后,地图无法移动、放大、缩小
<!–pages/gps/testmap.wxml–>
<map class=“map” id=“myMap” show-location >
<canvas class=‘mapCanvas’ canvas-id=“mapCanvas”>
</canvas>
</map>
onReady: function () {
try{
mapCtx = wx.createMapContext(‘myMap’);
}catch(error){
console.debug(error);
}
},