this.markers = [{
id: 1,
latitude: this.formData.startLat,
longitude: this.formData.startLng,
width: 32,
height: 32,
iconPath: '/static/icons/qidian.png',
callout: {
content: '起:' + (this.formData.startAddressName || '起点'),
display: 'ALWAYS',
fontSize: 12,
borderRadius: 5,
bgColor: '#4CAF50',
color: '#ffffff',
padding: 5
},
}
] - 发布:2026-04-23 18:01
- 更新:2026-04-23 18:01
- 阅读:11
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: windows 10
HBuilderX类型: 正式
HBuilderX版本号: 5.06
手机系统: Android
手机系统版本号: Android 13
手机厂商: 小米
手机机型: mi 9
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
使用上述代码即可复现
使用上述代码即可复现
预期结果:
width和height配置生效,图像没那么大
width和height配置生效,图像没那么大
实际结果:
不尽人意
不尽人意
bug描述:
map地图组件上的markers配置width和height在安卓手机端无效,在h5中是生效的,其他的没测试过。图像分辨率为 833x 833