@wemap/providers 9.0.0-alpha.5 → 9.0.0-alpha.7

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
@@ -15,7 +15,7 @@
15
15
  "@wemap/map": "^9.0.0-alpha.5",
16
16
  "@wemap/maths": "^9.0.0-alpha.5",
17
17
  "@wemap/osm": "^9.0.0-alpha.5",
18
- "@wemap/routers": "^9.0.0-alpha.5",
18
+ "@wemap/routers": "^9.0.0-alpha.7",
19
19
  "@wemap/utils": "^8.1.0"
20
20
  },
21
21
  "description": "A package using different geoloc systems",
@@ -42,6 +42,6 @@
42
42
  "url": "git+https://github.com/wemap/wemap-modules-js.git"
43
43
  },
44
44
  "type": "module",
45
- "version": "9.0.0-alpha.5",
46
- "gitHead": "ae308ca59b780eea4686103e048bf8eef7dbe2f5"
45
+ "version": "9.0.0-alpha.7",
46
+ "gitHead": "9d24ba2977caabf6034d5849a44a98b0dcd2e1c1"
47
47
  }
@@ -95,8 +95,6 @@ class AbsolutePosition extends Provider {
95
95
  if (ProvidersOptions.hasPoleStar) {
96
96
  this._polestarProviderId = PoleStar.addEventListener(events => {
97
97
  this._onAbsolutePosition(events.find(event => event.dataType === EventType.AbsolutePosition));
98
- PoleStar.removeEventListener(this._polestarProviderId);
99
- this._polestarProviderId = null;
100
98
  });
101
99
  }
102
100
 
@@ -96,7 +96,8 @@ class PoleStar extends Provider {
96
96
  Constants.DEFAULT_ALTITUDE,
97
97
  json.alt / 5,
98
98
  timestamp,
99
- json.accuracy,
99
+ // Hack to take more positions from PoleStar
100
+ json.accuracy / 2,
100
101
  json.bearing,
101
102
  this.pname);
102
103
 
@@ -3,7 +3,7 @@ import { SharedCameras, CameraUtils, Camera } from '@wemap/camera';
3
3
  import { Attitude, UserPosition } from '@wemap/geo';
4
4
  import Logger from '@wemap/logger';
5
5
  import { deg2rad, Quaternion } from '@wemap/maths';
6
- import { TimeUtils } from '../../../../utils/index.js';
6
+ import { TimeUtils } from '@wemap/utils';
7
7
 
8
8
  import EventType from '../../events/EventType.js';
9
9
  import ProviderEvent from '../../events/ProviderEvent.js';