uniApp map +腾讯地图 使用自定义气泡弹窗customCallout

需要在map标签中使用<cover-view>,并使用插槽slot="callout"

构建markers数组对象时,赋值customCallout对象;

指定:marker-id为marker对象id;

https://uniapp.dcloud.net.cn/component/map.html#marker-%E4%B8%8A%E7%9A%84%E8%87%AA%E5%AE%9A%E4%B9%89%E6%B0%94%E6%B3%A1-customcallout

 

 效果:

 

posted @ 2025-06-23 11:47  陈鹏昱Chen  阅读(694)  评论(0)    收藏  举报