Commit 0cf28dc5 by wangzhihui

修复地图经纬度转换

1 parent c4d32c73
...@@ -573,7 +573,7 @@ export default { ...@@ -573,7 +573,7 @@ export default {
convertCoordinate(item) { convertCoordinate(item) {
item = item.split(",") item = item.split(",")
return new Promise((resolve) => { return new Promise((resolve) => {
AMap.invoke('Convertor', [AMap.invoke('Point', item[0], item[1])], 3, 5, res => { AMap.invoke('Convertor', [AMap.invoke('Point', item[0], item[1])], 5, 3, res => {
const convertedPoint = res.points.length ? res.points[0] : item; const convertedPoint = res.points.length ? res.points[0] : item;
resolve(convertedPoint); resolve(convertedPoint);
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!