From 44ff576022c358c14b23cc5677d14ec3df7999ab Mon Sep 17 00:00:00 2001 From: "Frank(Wang.Yan.Qi)" Date: Fri, 3 Feb 2017 14:33:57 +0800 Subject: [PATCH] Update bmap-wx.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复反查时传入坐标非gcj02时,返回的坐标不准确问题 --- src/bmap-wx.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bmap-wx.js b/src/bmap-wx.js index 6bac5bc..2106edb 100644 --- a/src/bmap-wx.js +++ b/src/bmap-wx.js @@ -239,8 +239,8 @@ class BMapWX { outputRes["wxMarkerData"] = []; outputRes["wxMarkerData"][0] = { id: 0, - latitude: result["latitude"], - longitude: result["longitude"], + latitude: poiObj["location"]["lat"], + longitude: poiObj["location"]["lng"], address: poiObj["formatted_address"], iconPath: otherparam["iconPath"], iconTapPath: otherparam["iconTapPath"], @@ -364,4 +364,4 @@ class BMapWX { } } -module.exports.BMapWX = BMapWX; \ No newline at end of file +module.exports.BMapWX = BMapWX;