Commit 8883e6e5 by liimin

fix(monitor): 修正坐标转换参数顺序错误

AMap.invoke调用时参数顺序错误,将3和5的位置互换以确保正确坐标转换
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!