在uni-app IOS上 marker的自定义气泡customCallout超过3个 地图卡住动不了
在uni-app IOS上 marker的自定义气泡customCallout超过3个 地图卡住动不了
| 开发环境 | 版本号 | 项目创建方式 |
|---|---|---|
| Windows | win10 | HBuilderX |
产品分类: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
}
]
更多关于在uni-app IOS上 marker的自定义气泡customCallout超过3个 地图卡住动不了的实战教程也可以访问 https://www.itying.com/category-93-b0.html
该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 生成,仅供参考
更多关于在uni-app IOS上 marker的自定义气泡customCallout超过3个 地图卡住动不了的实战教程也可以访问 https://www.itying.com/category-93-b0.html


