win10 家庭版
开发工具:1.06.2206020
map组件显示marker,IDE正常,真机不正常
<map class="map" id="map" bindregionchange="mapRegionChange" markers="{{customList}}" bindmarkertap="onTapMarker" bindcallouttap="onTapcallout" bindlabeltap="onTaplabel" latitude="{{latitude}}" longitude="{{longitude}}" scale="{{scale}}" setting="{{setting}}" enable-overlooking="{{isOverLooking}}" enable-3D="{{is3D}}">
<!-- 自定义气泡 customCallout 开始 -->
<cover-view slot="callout">
<block wx:for="{{customList}}" wx:key='index'>
<cover-view class="customCallout" marker-id="{{index}}">
<!-- -->
<cover-view class="customCallout_passenger">
<cover-view class="customCalloutline1">
<cover-image class="customCallouticon" src="../../images/phone.png"></cover-image>
<cover-view class="customCalloutcontent">
{{item.customName}}
</cover-view>
</cover-view>
</cover-view>
</cover-view>
</block>
</cover-view>
<!-- 自定义气泡 customCallout 结束 -->
</map>
// markers有数据
that.setData({
scale: 10,
latitude: markers[0].latitude,
longitude: markers[0].longitude,
customList: markers,
});
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。