6***@qq.com
6***@qq.com
  • 发布:2025-01-23 09:07
  • 更新:2025-01-23 09:53
  • 阅读:53

map组件iconPath真机无法显示,官方大头针都没有

分类:uni-app
<map id="map" style="width: 100%; height:calc(100% - 50px);margin-bottom: 30rpx;" :latitude="latitude" :longitude="longitude" :markers="markers">  
            </map>  

 markers.value.push({  
                        latitude: item.latitude,  
                        longitude: item.longitude,  
                        label:item.userName,  
                        id:parseInt(item.userId),  
                        // iconPath:'/static/terminal.png',  
                        // iconPath: 'https://jt-1317775347.cos.ap-chongqing.myqcloud.com/terminal.png',  
                        width:20,  
                        height:20,  
                    })

本地路径和网络url都试过了,模拟器正常显示,真机啥都没有。

2025-01-23 09:07 负责人:无 分享
已邀请:
6***@qq.com

6***@qq.com (作者)

label 的问题,文档marker不是有label这个属性吗

要回复问题请先登录注册