@wemap/positioning 2.7.0 → 2.7.1

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
@@ -8,11 +8,11 @@
8
8
  "Guillaume Pannetier <guillaume.pannetier@getwemap.com>"
9
9
  ],
10
10
  "dependencies": {
11
- "@wemap/geo": "^2.7.0",
12
- "@wemap/graph": "^2.7.0",
11
+ "@wemap/geo": "^2.7.1",
12
+ "@wemap/graph": "^2.7.1",
13
13
  "@wemap/logger": "^2.7.0",
14
14
  "@wemap/maths": "^2.7.0",
15
- "@wemap/osm": "^2.7.0",
15
+ "@wemap/osm": "^2.7.1",
16
16
  "@wemap/utils": "^2.7.0",
17
17
  "geomagnetism": "^0.1.0",
18
18
  "lodash.isempty": "^4.4.0",
@@ -25,15 +25,11 @@
25
25
  "@babel/plugin-proposal-class-properties": "^7.5.5",
26
26
  "@babel/preset-env": "^7.5.5",
27
27
  "@babel/preset-react": "^7.0.0",
28
- "@material-ui/core": "^4.4.0",
29
- "app-module-path": "^2.2.0",
30
28
  "babel-eslint": "^10.0.3",
31
29
  "babel-loader": "^8.0.6",
32
30
  "chai": "^4.2.0",
33
31
  "chai-almost": "^1.0.1",
34
- "chai-as-promised": "^7.1.1",
35
32
  "css-loader": "^3.2.0",
36
- "dotenv": "^8.1.0",
37
33
  "eslint": "^6.2.2",
38
34
  "eslint-plugin-babel": "^5.3.0",
39
35
  "eslint-plugin-jsdoc": "^15.12.1",
@@ -43,16 +39,10 @@
43
39
  "jsdom-global": "^3.0.2",
44
40
  "mapbox-gl": "^1.3.0",
45
41
  "mocha": "^6.2.0",
46
- "npm": "^6.11.2",
47
42
  "prop-types": "^15.7.2",
48
43
  "react": "^16.11.0",
49
44
  "react-dom": "^16.11.0",
50
- "react-router-dom": "^5.0.1",
51
- "request": "^2.88.0",
52
- "request-promise": "^4.2.4",
53
- "simple-git": "^1.124.0",
54
45
  "style-loader": "^1.0.0",
55
- "url-parse": "^1.4.7",
56
46
  "webpack": "^4.39.3",
57
47
  "webpack-cli": "^3.3.7",
58
48
  "webpack-dev-server": "^3.9.0",
@@ -81,6 +71,6 @@
81
71
  "lint": "eslint --ext .js,.jsx --quiet src",
82
72
  "test": "mocha -r esm \"src/**/*.spec.js\""
83
73
  },
84
- "version": "2.7.0",
85
- "gitHead": "6a8ce3404ef84070ad5210c7cd50ee9f4807afc1"
74
+ "version": "2.7.1",
75
+ "gitHead": "3d332f1dce308ba28f2a551c2e709e840c54bd83"
86
76
  }
@@ -139,7 +139,7 @@ class ArCoreAbsoluteProvider extends MapMatchingProvider {
139
139
  this.position = this.position.destinationPoint(dist, bearing, diffPos[1]);
140
140
 
141
141
  if (this.absoluteAttitude) {
142
- this.position.bearing = this.absoluteAttitude.headingDegrees;
142
+ this.position.bearing = this.absoluteAttitude.heading;
143
143
  this.updateLevel(this.position);
144
144
  }
145
145
 
@@ -127,7 +127,7 @@ class GnssWifiPdrProvider extends MapMatchingProvider {
127
127
  this.pdrProvider.setPosition(this.gnssPosition);
128
128
  } else {
129
129
 
130
- this.gnssPosition.bearing = this.attitude.headingDegrees;
130
+ this.gnssPosition.bearing = this.attitude.heading;
131
131
  const projection = this.mapMatching.getProjection(this.gnssPosition, true, true);
132
132
 
133
133
  if (projection && projection.projection) {
@@ -7,7 +7,7 @@ import {
7
7
 
8
8
  import { Itinerary } from '@wemap/graph';
9
9
  import {
10
- deg2rad, rad2deg, Quaternion
10
+ deg2rad, Quaternion
11
11
  } from '@wemap/maths';
12
12
 
13
13
  import StepDetection from './steps/StepDetection';
@@ -260,7 +260,7 @@ class PdrProvider extends MapMatchingProvider {
260
260
  */
261
261
  const newPositionWithoutMM = previousPosition.clone();
262
262
  newPositionWithoutMM.move(stepSize, heading);
263
- newPositionWithoutMM.bearing = rad2deg(heading);
263
+ newPositionWithoutMM.bearing = heading;
264
264
  newPositionWithoutMM.time = timestamp;
265
265
 
266
266
  if (!this.mapMatching) {