Javascript实现地球坐标转火星坐标算法

这是一个Javascript版本的地球坐标系(WGS-84)到火星坐标系(GCJ-02)的转换算法。主要更新包括优化边界判断算法,使用中国边界坐标数据进行地图描边,并判断坐标是否在多边形区域内。另外,采用webpack4作为打包工具,使用eslint审查代码质量。您可以通过命令行执行npm start或直接在浏览器中打开index.html文件查看示例。调用代码示例:var gcjloc = transformFromWGSToGCJ(经度, 纬度)

zip
wgs2mars_js-master.zip 预估大小:16个文件
folder
wgs2mars.js-master 文件夹
file
.gitignore 624B
file
.eslintrc 5KB
file
package.json 1KB
file
webpack.config.js 691B
file
.travis.yml 60B
folder
.github 文件夹
folder
workflows 文件夹
file
nodejs-ci.yml 488B
file
in-china-region.png 212KB
file
README.md 3KB
folder
demo 文件夹
file
border-data.html 1KB
file
index.html 4KB
folder
lib 文件夹
file
wgs2mars.min.js 13KB
file
border-data.js 13KB
file
wgs2mars.js 3KB
file
border-data-all.js 13KB
file
.gitattributes 483B
folder
test 文件夹
file
test.js 379B
zip 文件大小:238.3KB