@wemap/providers 5.7.0 → 5.8.0

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
@@ -11,9 +11,9 @@
11
11
  "@wemap/geo": "^5.6.0",
12
12
  "@wemap/geomagnetism": "^0.1.1",
13
13
  "@wemap/logger": "^5.0.0",
14
- "@wemap/map": "^5.6.1",
14
+ "@wemap/map": "^5.8.0",
15
15
  "@wemap/maths": "^5.6.0",
16
- "@wemap/osm": "^5.6.1",
16
+ "@wemap/osm": "^5.8.0",
17
17
  "@wemap/utils": "^5.0.0"
18
18
  },
19
19
  "description": "A package using different geoloc systems",
@@ -39,6 +39,6 @@
39
39
  "url": "git+https://github.com/wemap/wemap-modules-js.git"
40
40
  },
41
41
  "type": "module",
42
- "version": "5.7.0",
43
- "gitHead": "a17faaa82aa6fde19640a1d29e29c61360c2a662"
42
+ "version": "5.8.0",
43
+ "gitHead": "09cd417cec44833c571406d74836ce476ab2a277"
44
44
  }
@@ -2,14 +2,15 @@
2
2
  import {
3
3
  Attitude, AbsoluteHeading, UserPosition, Network
4
4
  } from '@wemap/geo';
5
+ import { Itinerary } from '@wemap/osm';
5
6
 
6
7
  import EventType from './events/EventType.js';
7
8
  import {
8
- AbsoluteAttitude, AbsolutePosition, Barcode, CameraNative, CameraProjectionMatrix, Inclination, RelativeAttitude
9
+ AbsoluteAttitude, AbsolutePosition, Barcode, CameraNative,
10
+ CameraProjectionMatrix, Inclination, MagnetometerCalibrationDetector, RelativeAttitude
9
11
  } from './Providers.js';
10
12
  import ProvidersLoggerOld from './events/ProvidersLoggerOld.js';
11
13
  import MapMatchingHandler from './mapmatching/MapMatchingHandler.js';
12
- import { Itinerary } from '@wemap/osm';
13
14
 
14
15
  class ProvidersInterface {
15
16
 
@@ -96,6 +97,9 @@ class ProvidersInterface {
96
97
  case EventType.CameraProjectionMatrix:
97
98
  return CameraProjectionMatrix;
98
99
 
100
+ case EventType.MagnetometerNeedCalibration:
101
+ return MagnetometerCalibrationDetector;
102
+
99
103
  default:
100
104
  throw new Error(`Unable to deal with this event type: ${eventType}`);
101
105
  }