local-coordinate-transform
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "local-coordinate-transform", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "transform local coordinates to wgs84 or vice versa", | ||
@@ -5,0 +5,0 @@ "main": "dist/local-coordinate-transform.js", |
@@ -44,5 +44,6 @@ # Local Coordinate Transform | ||
const transform = lct(localSamples, wgs84Samples); | ||
const local = transform.toLocal([ 121.38365648516356, 31.15163789378666 ]); | ||
const wgs84 = transform.fromLocal([ -7961.222764147446, -9289.597782096651 ]); | ||
//第一个参数是用来接收结果的数组,第二个参数是84坐标值 | ||
const local = transform.toLocal([],[ 121.38365648516356, 31.15163789378666 ]); | ||
//第一个参数是用来接收结果的数组,第二个参数是本地坐标值 | ||
const wgs84 = transform.fromLocal([],[ -7961.222764147446, -9289.597782096651 ]); | ||
``` | ||
@@ -49,0 +50,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59
7260
4
87