uni-app app端ios下map marker中label的anchorY不生效,安卓中label会被marker覆盖

uni-app app端ios下map marker中label的anchorY不生效,安卓中label会被marker覆盖

测试过的手机

华为p30,苹果xs

示例代码:

this.covers.push({
id: index,
latitude: item.latitude,
longitude: item.longitude,
iconPath: '../../static/map/circle.png',
label: {
content: item.total.toString(),
color: '#3D73DD',
fontSize: '16px',
bgColor: '#ffffff',
borderRadius: 50,
anchorX: item.total.toString().length == 1 ? -5 : -8,
anchorY: -32
},
width: 34,
height: 40,
customObj: {
areaKey: 'province', // 请求的省份,下一步就该用身份查市
areaValue: item.province
}
});

操作步骤:

nvue页面动态添加marker和label,ios下map marker中label的anchorY不能正常移动label,安卓中label会被marker覆盖

预期结果:

ios下anchorY能正常移动label,安卓中label会被marker覆盖

实际结果:

ios下anchorY不能移动,anchorX斜着移动,安卓中label会被marker覆盖

bug描述:

  1. ios下map marker中label的anchorY不生效
  2. 安卓中label会被marker覆盖 无法完成如图的点聚合效果

Image

uni-share.zip


更多关于uni-app app端ios下map marker中label的anchorY不生效,安卓中label会被marker覆盖的实战教程也可以访问 https://www.itying.com/category-93-b0.html

7 回复

请上传一个完整的示例工程方便排查

更多关于uni-app app端ios下map marker中label的anchorY不生效,安卓中label会被marker覆盖的实战教程也可以访问 https://www.itying.com/category-93-b0.html


示例已上传,我更新了包,package-lock.json删除重新更新了node_modules,现在ios中anchorY不生效的问题解决了,但是安卓label被marker覆盖的问题没有解决,望处理一下

测试手机是华为p30

你好麻烦请问一下 label会被marker覆盖这个问题怎么解决得

覆盖问题解决了吗

回复 l***@126.com: 你打完包看还覆盖没 label没覆盖 但是callout还是会

官方的bug,他们都处理了啊,升级最近hb版本,如果cli创建的项目,把node_module更新一下

回到顶部