
- 发布:2022-09-05 17:53
- 更新:2022-09-07 11:13
- 阅读:548
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 12.0.1
HBuilderX类型: 正式
HBuilderX版本号: 3.5.3
手机系统: 全部
手机厂商: 华为
页面类型: nvue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
测试过的手机:
操作步骤:
必现数据格式{
"id": 9,
"iconPath": "/static/map/yuan.png",
"latitude": 29.41927075,
"longitude": 120.00575275,
"width": 85,
"height": 85,
"callout": {
"content": "黄宅镇\n4",
"textAlign": "center",
"color": "white",
"bgColor": "red",
"anchorY": 70,
"fontSize": 15,
"display": "ALWAYS"
}
}
必现数据格式{
"id": 9,
"iconPath": "/static/map/yuan.png",
"latitude": 29.41927075,
"longitude": 120.00575275,
"width": 85,
"height": 85,
"callout": {
"content": "黄宅镇\n4",
"textAlign": "center",
"color": "white",
"bgColor": "red",
"anchorY": 70,
"fontSize": 15,
"display": "ALWAYS"
}
}
预期结果:
callout直接点击可以点击 切callou不在icon之下
callout直接点击可以点击 切callou不在icon之下
实际结果:
callout点击和显示异常
callout点击和显示异常

海角 (作者)
include-points和uni.createMapContext("map", this).includePoints都无效 麻烦也看下 由于无效进去后只能看到一个 缩放下就能看到所有callout 测试机是华为Mate 20 Pro 系统是 Harmony OS 2.0.0
海角 (作者)
已发 在楼下
2022-09-07 11:11
DCloud_Android_THB
回复 1***@163.com: 这个暂时解决不了,这个是高德的行为,重叠的时候会由zindex小的来接收事件,建议不要把callout和marker重叠在一起,使用别的方式来实现。
2022-09-08 17:29
海角 (作者)
回复 DCloud_Android_THB: 能推荐下还能用什么方式实现吗 目前还能用什么方式实现
2022-09-13 10:55
DCloud_Android_THB
回复 1***@163.com: 重叠不是不行了
2022-09-13 16:07