
q963305
- 发布:2022-09-01 11:11
- 更新:2023-07-05 14:54
- 阅读:371
地图组件怎么设置Marker可拖动?
分类:uni-app

FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866
q963305 (作者)
请问vue里面要如何设置那个参数呢?
marker = {
id: item.id,
latitude: item.lat,
longitude: item.lon,
width: 34,
height: 34,
// draggable: true,
joinCluster: true,
iconPath: '../../static/drdingwei.png',
callout: {
content: '接单中\n' + item.name,
color: '#ffffff', //文字颜色
fontSize: 16, //文本大小
borderRadius: 5, //边框圆角
borderWidth: 2,
bgColor: '#3D9D65', //背景颜色
display: 'ALWAYS', //常显
}
}
2022-09-06 16:34