gcoord坐标转换插件
关键代码
<script src="https://unpkg.com/gcoord@1.0.5/dist/gcoord.global.prod.js"></script>
var gcj02Data = gcoord.transform(geoJsonObject, gcoord.WGS84, gcoord.GCJ02);
具体见github https://github.com/hujiulong/gcoord
关键代码
<script src="https://unpkg.com/gcoord@1.0.5/dist/gcoord.global.prod.js"></script>
var gcj02Data = gcoord.transform(geoJsonObject, gcoord.WGS84, gcoord.GCJ02);
具体见github https://github.com/hujiulong/gcoord