@wemap/geo 3.2.1 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"directory": "packages/geo"
|
|
13
13
|
},
|
|
14
14
|
"name": "@wemap/geo",
|
|
15
|
-
"version": "3.2.
|
|
15
|
+
"version": "3.2.3",
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/wemap/wemap-modules-js/issues"
|
|
18
18
|
},
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@wemap/logger": "^3.2.
|
|
30
|
-
"@wemap/maths": "^3.2.
|
|
29
|
+
"@wemap/logger": "^3.2.3",
|
|
30
|
+
"@wemap/maths": "^3.2.3"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "f7075f59fc3227c7f4cb7f1fa8cc69b98705364e"
|
|
33
33
|
}
|
|
@@ -2,14 +2,11 @@
|
|
|
2
2
|
import chai from 'chai';
|
|
3
3
|
import chaiAlmost from 'chai-almost';
|
|
4
4
|
|
|
5
|
-
import Logger from '@wemap/logger';
|
|
6
|
-
|
|
7
5
|
import BoundingBox from './BoundingBox.js';
|
|
8
6
|
import Coordinates from './Coordinates.js';
|
|
9
7
|
|
|
10
8
|
const expect = chai.expect;
|
|
11
9
|
chai.use(chaiAlmost());
|
|
12
|
-
Logger.enable(false);
|
|
13
10
|
|
|
14
11
|
let boundingBox;
|
|
15
12
|
const northEast = new Coordinates(10, 40);
|
|
@@ -30,10 +30,18 @@ class Coordinates {
|
|
|
30
30
|
return this._lat;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
get latitude() {
|
|
34
|
+
return this._lat;
|
|
35
|
+
}
|
|
36
|
+
|
|
33
37
|
get lng() {
|
|
34
38
|
return this._lng;
|
|
35
39
|
}
|
|
36
40
|
|
|
41
|
+
get longitude() {
|
|
42
|
+
return this._lng;
|
|
43
|
+
}
|
|
44
|
+
|
|
37
45
|
/**
|
|
38
46
|
* alt does not denote the altitude of a point but its height from
|
|
39
47
|
* the "level" field (if defined) or from the ground
|