push
This commit is contained in:
10
lib/component/form/map/transfer.ts
Normal file
10
lib/component/form/map/transfer.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import gcoord from 'gcoord';
|
||||
|
||||
/**
|
||||
* @param fromPoit 当前坐标系
|
||||
* @param toPoint 目标坐标系
|
||||
* @param point 经纬度坐标 数组类型
|
||||
*/
|
||||
export default function pointTransfer(point, fromPoit, toPoint) {
|
||||
return gcoord.transform(point, gcoord[fromPoit], gcoord[toPoint]);
|
||||
}
|
||||
Reference in New Issue
Block a user