godjb opened a new issue #16771: URL: https://github.com/apache/echarts/issues/16771
### Version 5.3.0 ### Link to Minimal Reproduction https://echarts.apache.org/examples/zh/editor.html?c=map-usa-projection&version=5.3.0 ### Steps to Reproduce myChart.showLoading(); $.when( $.get(ROOT_PATH + '/data/asset/geo/USA.json'), $.getScript('https://cdn.jsdelivr.net/npm/d3-array'), $.getScript('https://cdn.jsdelivr.net/npm/d3-geo') ).done(function (res) { const usaJson = res[0]; const projection = d3.geoAlbersUsa(); myChart.hideLoading(); echarts.registerMap('USA', usaJson); option = { title: { text: 'USA Population Estimates (2012)', subtext: 'Data from www.census.gov', sublink: 'http://www.census.gov/popest/data/datasets.html', left: 'right' }, geo: { name: 'USA PopEstimates', type: 'map', map: 'USA', projection: { project: function (point) { return projection(point); }, unproject: function (point) { return projection.invert(point); } }, emphasis: { label: { show: true } } } }; myChart.setOption(option); const pos = [-97.54294,41.25546]; const pos1 = myChart.convertToPixel('geo', pos); const isin = myChart.containPixel('geo', pos1); const pos2 = myChart.convertFromPixel('geo', pos1); console.log('p', pos, pos1, isin, pos2); }); ### Current Behavior pos为我选取的经纬度坐标,pos1是转换的像素值,pos2是反转回去的经纬度,经过输出,pos和pos2的值相差较大 ### Expected Behavior 预期pos和pos2的值相差无几 ### Environment ```markdown - OS: - Browser: - Framework: ``` ### Any additional comments? 在5.2.2版本没有遇到这个问题 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org