<map style="width: 100%; height: 50vh;" id="map" class="map" :show-location="true" :latitude="latitude"
:longitude="longitude" :markers="markers" @tap="tap"></map>

- 发布:2024-12-25 17:12
- 更新:2024-12-25 17:12
- 阅读:93
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 4.43
手机系统: Android
手机系统版本号: Android 11
手机厂商: 小米
手机机型: 红米9
页面类型: vue
vue版本: vue3
打包方式: 离线
项目创建方式: HBuilderX
示例代码:
操作步骤:
<map style="width: 100%; height: 50vh;" id="map" class="map" :show-location="true" :latitude="latitude"
:longitude="longitude" :markers="markers" @tap="tap"></map>
<map style="width: 100%; height: 50vh;" id="map" class="map" :show-location="true" :latitude="latitude"
:longitude="longitude" :markers="markers" @tap="tap"></map>
预期结果:
<map style="width: 100%; height: 50vh;" id="map" class="map" :show-location="true" :latitude="latitude"
:longitude="longitude" :markers="markers" @tap="tap"></map>
<map style="width: 100%; height: 50vh;" id="map" class="map" :show-location="true" :latitude="latitude"
:longitude="longitude" :markers="markers" @tap="tap"></map>
实际结果:
<map style="width: 100%; height: 50vh;" id="map" class="map" :show-location="true" :latitude="latitude"
:longitude="longitude" :markers="markers" @tap="tap"></map>
<map style="width: 100%; height: 50vh;" id="map" class="map" :show-location="true" :latitude="latitude"
:longitude="longitude" :markers="markers" @tap="tap"></map>
bug描述:
{"defaultPrevented":false,"timeStamp":0,"_stop":false,"_end":false,"type":"onTap","bubbles":false,"cancelable":false,"target":{"dataset":{},"id":"map","offsetLeft":0,"offsetTop":0},"detail":{},"currentTarget":{"dataset":{},"id":"map","offsetLeft":0,"offsetTop":0}}
0 个回复