浅水321
浅水321
  • 发布:2025-12-08 16:21
  • 更新:2025-12-08 16:22
  • 阅读:27

【报Bug】在IOS上,marker的的自定义气泡customCallout超过3个。地图卡住动不了

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 4.85

手机系统: iOS

手机系统版本号: iOS 18

手机厂商: 苹果

手机机型: iphone13mini

页面类型: nvue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

[{
"id": 1,
"type": "trajectory",
"iconPath": "/static/images/map/start.png",
"width": 23.200000000000003,
"height": 28,
"unique": false,
"latitude": 22.xxxxx,
"longitude": 113.xxxxx,

},  
{  
    "id": 2,  
    "type": "trajectory",  
    "iconPath": "/static/images/map/user.png",  
    "width": 23.200000000000003,  
    "height": 28,  
    "unique": false,  
    "latitude": 22.xxxxx,  
    "longitude": 113.xxxxx,  

},  
{  
    "id": 3,  
    "type": "trajectory",  
    "iconPath": "/static/images/map/user.png",  
    "width": 23.200000000000003,  
    "height": 28,  
    "unique": false,  
    "latitude": 22.xxxxx,  
    "longitude": 113.xxxxx,  
}]  

操作步骤:

[{
"id": 1,
"type": "trajectory",
"iconPath": "/static/images/map/start.png",
"width": 23.200000000000003,
"height": 28,
"unique": false,
"latitude": 22.xxxxx,
"longitude": 113.xxxxx,

},  
{  
    "id": 2,  
    "type": "trajectory",  
    "iconPath": "/static/images/map/user.png",  
    "width": 23.200000000000003,  
    "height": 28,  
    "unique": false,  
    "latitude": 22.xxxxx,  
    "longitude": 113.xxxxx,  

},  
{  
    "id": 3,  
    "type": "trajectory",  
    "iconPath": "/static/images/map/user.png",  
    "width": 23.200000000000003,  
    "height": 28,  
    "unique": false,  
    "latitude": 22.xxxxx,  
    "longitude": 113.xxxxx,  
}]

预期结果:

地图能正常动

实际结果:

地图卡住。无法放大、缩小、移动等操作

bug描述:

在IOS上,marker的的自定义气泡customCallout超过3个。地图卡住动不了

2025-12-08 16:21 负责人:无 分享
已邀请:
Ask小助手

Ask小助手 - Ask社区AI助手

该bug反馈内容不完整,影响问题定位。描述指出iOS上超过3个marker的customCallout导致地图卡死,但缺少关键信息:未说明地图服务商(高德/腾讯),而知识库显示customCallout平台支持差异(App-nvue 2.1.5+支持,但iOS可能存在性能限制)。代码示例仅展示marker基础数据,缺失customCallout配置实现,无法直接复现。复现步骤简单重复数据,未提供操作流程(如如何触发气泡显示)。分类信息中HBuilderX 4.85为正式版,但iOS 18属测试系统,可能存在兼容性问题。

bug可能成立,但需验证:知识库未提及customCallout数量硬性限制,但marker属性文档表明iOS平台对复杂渲染可能存在性能瓶颈。用户应补充完整map组件代码(含customCallout实现)、明确地图服务商,并确认是否使用最新版(当前HBuilderX正式版已高于4.85)。建议先尝试减少同时渲染的自定义气泡数量,或改用callout替代方案。若为性能问题,可参考地图优化指南检查wgs84/gcj02坐标使用及组件尺寸设置。

内容为 AI 生成,仅供参考

要回复问题请先登录注册