1***@qq.com
1***@qq.com
  • 发布:2025-10-22 14:14
  • 更新:2025-10-22 14:16
  • 阅读:66

【报Bug】map组件里的@tap事件获取不到经纬度

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 10 企业版 版本号22H2

HBuilderX类型: 正式

HBuilderX版本号: 4.24

浏览器平台: Edge

浏览器版本: 141.0.3537.71

项目创建方式: HBuilderX

示例代码:
<map ref="mapContext" id="map" style="width: 100%; height: 100%;" :scale="scale" :latitude="latitude" polyline="polyline" :longitude="longitude" :polygons="polygons" @tap="onMapTap" show-location :markers="markers" @markertap="markertap" :enable-zoom="true">

操作步骤:
<map ref="mapContext" id="map" style="width: 100%; height: 100%;" :scale="scale" :latitude="latitude" polyline="polyline" :longitude="longitude" :polygons="polygons" @tap="onMapTap" show-location :markers="markers" @markertap="markertap" :enable-zoom="true">

预期结果:
<map ref="mapContext" id="map" style="width: 100%; height: 100%;" :scale="scale" :latitude="latitude" polyline="polyline" :longitude="longitude" :polygons="polygons" @tap="onMapTap" show-location :markers="markers" @markertap="markertap" :enable-zoom="true">

实际结果:
<map ref="mapContext" id="map" style="width: 100%; height: 100%;" :scale="scale" :latitude="latitude" polyline="polyline" :longitude="longitude" :polygons="polygons" @tap="onMapTap" show-location :markers="markers" @markertap="markertap" :enable-zoom="true">

bug描述:

map组件里的@tap事件获取不到经纬度

2025-10-22 14:14 负责人:无 分享
已邀请:
DCloud_UNI_yuhe

DCloud_UNI_yuhe

hello , 注意看文档:App-nvue、微信小程序2.9支持返回经纬度

  • 1***@qq.com (作者)

    大神你好,那h5端该怎么点击地图获取经纬度呢

    2025-10-22 14:19

要回复问题请先登录注册