百度地图的坐标怎么转换为经纬度

找了好多 都是经纬度转坐标的

批量转换坐标(据说有50次/秒的限制哦)谷歌地图鼠标点击的谷歌坐标是:百度地图鼠标点击的百度坐标是:()changeMore.js//2011-7-25zhangying(function(){functionload_script(xyUrl,callback){varhead=document.getElementsByTagName('head')[0];varscript=document.createElement('script');script.type='text/javascript';script.src=xyUrl;//借鉴了jQuery的script跨域方法scriptscript.onload=script.onreadystatechange=function(){if((!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){callback&&callback();//HandlememoryleakinIEscriptscript.onload=script.onreadystatechange=null;if(head&&script.parentNode){head.removeChild(script);}}};//UseinsertBeforeinsteadofappendChildtocircumventanIE6bug.head.insertBefore(script,head.firstChild);}functiontransMore(points,type,callback){for(varindexinpoints){if(index>50){return;}varxyUrl="/ag/coord/convert?from="+type+"&to=4&x="+points[index].lng+//这里要循环读入数组points的lng数据,直到points.length完毕。"&y="+points[index].lat+"&callbackcallback=callback";//动态创建script标签load_script(xyUrl);}}windowwindow.BMap=window.BMap||{};BMap.Convertor={};BMap.Convertor.transMore=transMore;})();
温馨提示:答案为网友推荐,仅供参考
第1个回答  2020-12-03

相似回答