<map class="map"
id="map"
:controls="controls"
:longitude="longitude"
:latitude="latitude"
:scale="13"
@regionchange="mapChangeArea">
</map>

- 发布:2022-08-12 19:41
- 更新:2022-08-17 09:48
- 阅读:1328
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 12.5
手机系统: iOS
手机系统版本号: iOS 15
手机厂商: 苹果
手机机型: iphone13p
页面类型: vue
vue版本: vue2
打包方式: 离线
项目创建方式: CLI
CLI版本号: 3.5.3
示例代码:
操作步骤:
集成map组件
集成map组件
预期结果:
显示地图信息
显示地图信息
实际结果:
微信啊是地图信息
微信啊是地图信息
bug描述:
iOS平台 更新 百度定位SDK为 2.0.0 版,百度地图SDK为 6.5.0 版
这个更新之后 无法显示 百度地图界面 显示空白 如下图:
定位信息正常 已经返回poi相关信息 也没有报错
依赖信息也已上船 均按照xls配置配置



ningx (作者) - ning
解决方案:HBuilder-Hello-Info.plist 中检查是否存在 Bundle display name(CFBundleDisplayName) 加上key 并填写名称 百度地图就可以初始化成功了,可以正常显示地图了

你这边是离线SDK吗?看下有没有错误信息
-
ningx (作者)
这是日志信息:
2022-08-16 14:50:35.133854+0800 HBuilder[20798:1253824] <Weex>[log]WXBridgeContext.m:1310, jsLog: ---BEGIN:JSON---{"detail":{"x":306,"y":268},"target":{"x":306,"offsetTop":0,"id":"","y":268,"offsetLeft":0,"dataset":{}},"currentTarget":{"offsetTop":245,"id":"","offsetLeft":0,"dataset":{}},"changedTouches":[{"pageY":268,"clientY":268,"clientX":306,"force":1,"identifier":0,"pageX":306}],"timeStamp":4856,"type":"click","touches":[{"pageY":268,"clientY":268,"clientX":306,"force":1,"identifier":0,"pageX":306}],"preventDefault":"function() { [native code] }","stopPropagation":"function() { [native code] }","mp":{"@warning":"mp is deprecated","detail":{"x":306,"y":268},"target":{"x":306,"offsetTop":0,"id":"","y":268,"offsetLeft":0,"dataset":{}},"currentTarget":{"offsetTop":245,"id":"","offsetLeft":0,"dataset":{}},"changedTouches":[{"pageY":268,"clientY":268,"clientX":306,"force":1,"identifier":0,"pageX":306}],"timeStamp":4856,"type":"click","touches":[{"pageY":268,"clientY":268,"clientX":306,"force":1,"identifier":0,"pageX":306}],"preventDefault":"function() { [native code] }","stopPropagation":"function() { [native code] }"},"_processed":true}---END:JSON--- at pages/delivery/mt/register.vue:257 __LOG
2022-08-16 14:50:35.153446+0800 HBuilder[20798:1253624] can not stop loc in not locationg!
2022-08-16 14:50:35.153707+0800 HBuilder[20798:1253624] start loc!
2022-08-16 14:50:35.166897+0800 HBuilder[20798:1253624] BMKLocationKit has received location
2022-08-16 14:50:35.247483+0800 HBuilder[20798:1253624] Metal GPU Frame Capture Enabled
2022-08-16 14:50:35.249245+0800 HBuilder[20798:1253624] Metal API Validation Enabled
2022-08-16 14:50:35.444443+0800 HBuilder[20798:1253624] fopen failed for data file: errno = 2 (No such file or directory)
2022-08-16 14:50:35.444515+0800 HBuilder[20798:1253624] Errors found! Invalidating cache...
2022-08-16 14:50:35.541956+0800 HBuilder[20798:1253624] stop loc!
2022-08-16 14:50:35.543786+0800 HBuilder[20798:1253624] [Runtime][DEBUG:] show NWindow--[9]
2022-08-16 14:50:35.546116+0800 HBuilder[20798:1253624] <Weex>[warn]WXTimerModule.m:134, no timer found for callbackID:
2022-08-16 14:50:35.767467+0800 HBuilder[20798:1253824] <Weex>[log]WXBridgeContext.m:1310, jsLog:2022-08-16 14:53
-
-
ningx (作者)
回复 DCloud_iOS_WZT: 没有搜索到这个日志 但是我调试过程中还会提示这个提示,但是我确实进入app时候已经给权限了,但是还会提示没权限。
2022-08-16 16:12
-
-
-
ningx (作者)
回复 DCloud_iOS_WZT: 没有这边只是给您个提示 有这个提示不知道对您有没有帮助 像您说的一样确实有些可以有些不可以。 maponGetPermissionState 没有搜索到这个日志的 我这边3.53我一个个文件对比过来的 都拷贝了 但是运行地图还是网格
2022-08-16 16:36
-
-