diff --git a/frontend/src/utils/coord-transform.js b/frontend/src/utils/coord-transform.js index a4319fc98d..2eb927b643 100644 --- a/frontend/src/utils/coord-transform.js +++ b/frontend/src/utils/coord-transform.js @@ -104,7 +104,7 @@ export const wgs84_to_gcj02 = (lng, lat) => { export const gcj02_to_wgs84 = (lng, lat) => { const _lat = +lat; const _lng = +lng; - if (out_of_china(_lng, _lat)) return { _lng, _lat }; + if (out_of_china(_lng, _lat)) return { lng: _lng, lat: _lat }; let dLat = transformLat(_lng - 105.0, _lat - 35.0); let dLng = transformLng(_lng - 105.0, _lat - 35.0); const radLat = _lat / 180.0 * PI;