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;