From aeda8f124995a9d754aa4b5e9fb55275f2982d20 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 23 Jun 2022 20:36:53 +0800 Subject: [PATCH] =?UTF-8?q?perf(map):=20=E4=BC=98=E5=8C=96=20h5=E7=AB=AF?= =?UTF-8?q?=20markertap=20=E8=BF=94=E5=9B=9E=E7=BB=8F=E7=BA=AC=E5=BA=A6?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/h5/view/components/map/map-marker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platforms/h5/view/components/map/map-marker.js b/src/platforms/h5/view/components/map/map-marker.js index ff9b435256..34eb6e348f 100644 --- a/src/platforms/h5/view/components/map/map-marker.js +++ b/src/platforms/h5/view/components/map/map-marker.js @@ -110,7 +110,9 @@ export default { } if (this.idString) { this.$parent.$trigger('markertap', {}, { - markerId: Number(this.idString) + markerId: Number(this.idString), + latitude: typeof e.latLng.lat === 'function' ? e.latLng.lat() : e.latLng.lat, + longitude: typeof e.latLng.lat === 'function' ? e.latLng.lng() : e.latLng.lng }) } -- GitLab