<map id="map" ref="map" :longitude="lng" :latitude="lat" :polyline="polyline" :include-points="includePoints"
:customCallout="callout" :show-location="true" :markers="markers" @markertap="markertap">
<!-- 自定义窗口 -->
<cover-view slot="callout">
<block v-for="(item, index) in markers" :key="index">
<cover-view :marker-id="item.id">
aaaaaaaaaaaaaa
</cover-view>
</block>
</cover-view>
</map>
js点击事件
markertap(e) {
let markers = this.markers
markers.find((item, index) => {
if (item.id === e.markerId) {
item.customCallout.display = 'ALWAYS'
}
})
},
s***@163.com
请问解决了吗,遇到同样问题
2023-08-10 13:03
8***@qq.com
看文档应该使用map 高级定制渲染,不过我用完不显示,很无奈
2023-08-18 15:02
自用仓库
回复 8***@qq.com: 兄弟,最后解决了么
2024-08-20 17:26