用户安卓机子低概率出现地图加载不正常情况,退出重进一定几率恢复
代码:
<!–地图块–>
<view class=“map-rent” wx:if=’{{state==“rent”}}’>
<map id=“map” longitude="{{longitude}}" latitude="{{latitude}}" markers="{{rentMap.markers}}" polyline="{{rentMap.polyline}}" controls="{{rentMap.controls}}" bindmarkertap=‘carDot1’
bindcontroltap=‘callItem1’></map>
</view>
<view class=“map-end” wx:else>
<map id=“map” longitude="{{longitude}}" latitude="{{latitude}}" markers="{{endMap.markers}}" polyline="{{endMap.polyline}}" controls="{{endMap.controls}}" bindmarkertap=‘carDot2’ bindcontroltap=‘callItem2’ show-location=‘true’></map>
</view>