x***@aliyun.com
x***@aliyun.com
  • 发布:2021-06-08 16:43
  • 更新:2023-10-18 19:04
  • 阅读:1524

map组件的controls 控件死活不显示

分类:uni-app
map

Hbuider 3.1.13.20210514
微信开发者工具1.05 ;调试基础库2.17

原生的map组件,controls在微信开发者工具上和微信小程序真机调试上不显示呢?

只有小程序用这个组件,APP情况下手写的amap

<map :latitude="lat" :longitude="lon" :markers="markers" :controls="controls"   
                @markertap="markertap" style="width: 750rpx; height: 90vh;" :show-compass="compass">  

            </map>
controls:[  
                    {  
                        id:10,  
                        position:{  
                            left:0,  
                            top:0,  
                            width:100,  
                            height:100  
                        },  
                        iconPath:"/static/uni.png",  
                        clickable:true  
                    }  
                ],
2021-06-08 16:43 负责人:无 分享
已邀请:
DCloud_UNI_LXH

DCloud_UNI_LXH

跑hello-uniapp是否显示?右下角一个uni的logo

l***@sina.com

l***@sina.com

请问解决了吗?

5***@qq.com

5***@qq.com

iconPath:"/static/uni.png" ==> 换成 iconPath:require("/static/uni.png")
要使用绝对路径

w***@163.com

w***@163.com

遇到同样的问题,请问你解决了吗?

2***@qq.com

2***@qq.com

地图控件bug,地图只显示了左半边,控件在右侧,我这也遇到了,我这个cover-view位置在50%,结果在这个位置

要回复问题请先登录注册