- 发布:2022-03-25 11:26
- 更新:2022-03-25 14:57
- 阅读:672
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: windows10
HBuilderX类型: 正式
HBuilderX版本号: 3.3.13
浏览器平台: 微信内置浏览器
浏览器版本: 8.0.16
项目创建方式: HBuilderX
App下载地址或H5⽹址: https://pay.mo8tech.com/toiletH5/
示例代码:
<map
style="'width: 100%;z-index:10;height:' + mapHeight + 'px'"
id="myMap"
latitude="latitude1"
longitude="longitude1"
markers="covers"
@callouttap="getCallouttap"
@markertap="getMarkertap"
show-compass="true"
show-location="true"
></map>
@markertap="getMarkertap"
show-compass="true"
show-location="true"
></map>
操作步骤:
创建包含map组件的H5页面,并设置show-location="true"
创建包含map组件的H5页面,并设置show-location="true"
预期结果:
使用浏览器开发H5页面时地图显示实时位置并且方向随手机移动
使用浏览器开发H5页面时地图显示实时位置并且方向随手机移动
实际结果:
安卓手机显示正常,但是苹果手机不随手机移动实时更新位置和方向
安卓手机显示正常,但是苹果手机不随手机移动实时更新位置和方向
bug描述:
map组件的show-location属性在H5页面下苹果手机中无效
6***@qq.com
请问优化好了吗,碰到同样的问题
2024-02-01 15:28