1***@qq.com
1***@qq.com
  • 发布:2022-03-18 16:35
  • 更新:2022-03-22 17:12
  • 阅读:896

uniapp map polygon 多边形不显示

分类:uni-app
<map style="height:800rpx;width: 100%;" :latitude="center.latitude" :longitude="center.longitude"

polygon='polygon'>

</map>  

center: {
longitude: 116.412732,
latitude: 39.911707
},

polygon: {
points: [{
latitude: 41.67718084866292,
longitude: 123.46309977667163
},
{
latitude: 41.66903006523445,
longitude: 123.46299174638523
}, {
latitude: 41.66953315887012,
longitude: 123.47302797056733
}, {
latitude: 41.67718084866292,
longitude: 123.46309977667163
}
],
fillColor: '#BB0000DD',
width: 5,
strokeColor: "blue", //描边颜色
strokeWidth: 4, //描边宽度
zIndex: 100, //层级

            }
2022-03-18 16:35 负责人:无 分享
已邀请:
DCloud_UNI_Anne

DCloud_UNI_Anne

可参考下hello uni-app示例代码

该问题目前已经被锁定, 无法添加新回复