收藏
回答

为什么map标签里面cover-view没有显示?

在工具和真机运行上ios的可以显示

但在真机android上就不显示

            <map id="sceneIdMap" class="map-tag" show-scale show-location scale="{{mapScale}}" markers="{{dualMapData}}" latitude="{{usedLC.latitude}}" longitude="{{usedLC.longitude}}" bindlabeltap="handleLabelTap" bindcallouttap="handleCalloutTap" data-tp="{{CRproductTp}}">

                <cover-view slot="callout">

                    <block wx:for="{{dualMapData}}" wx:key="index">

                        <cover-view marker-id="{{item.id}}" class="callout-container {{CRproductTp==1?'c1':'c2'}}" data-idx="{{index}}">

                            <cover-view class="callout-img" wx:if="{{CRproductTp==1}}">

                                <cover-image wx:if="{{CRproductTp==1 && index == mapSwiperIndex}}" src="/asset/images/map_area_bg.png" class="map-area-bg on" />

                                <cover-image src="{{item.areaHead}}" class="callout-image1 {{index == mapSwiperIndex ? 'on' : ''}}" />

                            </cover-view>

                            <cover-image wx:if="{{CRproductTp==2}}" src="/asset/images/map_line_bg.png" class="callout-image2" />

                            <cover-view wx:if="{{CRproductTp==2}}" class="callout-name ellipsis">

                                {{item.packageItemName}}

                            </cover-view>

                        </cover-view>

                    </block>

                </cover-view>

            </map>

回答关注问题邀请回答
收藏

2 个回答

  • 城K
    城K
    04-29

    太冷门的问题了,没有人回答啊。。

    04-29
    有用
    回复
  • 智能回答 智能回答 本次回答由AI生成
    04-28
    有用
登录 后发表内容