@wemap/providers 9.0.0-alpha.8 → 9.0.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.
|
@@ -9,8 +9,15 @@ export default class CustomMapProvider extends Evented {
|
|
|
9
9
|
positionProviderId = null;
|
|
10
10
|
smoother = null;
|
|
11
11
|
|
|
12
|
+
_started = false;
|
|
13
|
+
|
|
12
14
|
start() {
|
|
13
15
|
|
|
16
|
+
if (this._started) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
this._started = true;
|
|
20
|
+
|
|
14
21
|
/**
|
|
15
22
|
* Attitude
|
|
16
23
|
*/
|
|
@@ -41,6 +48,10 @@ export default class CustomMapProvider extends Evented {
|
|
|
41
48
|
}
|
|
42
49
|
|
|
43
50
|
stop() {
|
|
51
|
+
if (!this._started) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
this._started = false;
|
|
44
55
|
|
|
45
56
|
/**
|
|
46
57
|
* Attitude
|
package/package.json
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"Guillaume Pannetier <guillaume.pannetier@getwemap.com>"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@wemap/camera": "^9.0.0
|
|
12
|
-
"@wemap/geo": "^9.0.0
|
|
11
|
+
"@wemap/camera": "^9.0.0",
|
|
12
|
+
"@wemap/geo": "^9.0.0",
|
|
13
13
|
"@wemap/geomagnetism": "^0.1.1",
|
|
14
|
-
"@wemap/logger": "^9.0.0
|
|
15
|
-
"@wemap/map": "^9.0.0
|
|
16
|
-
"@wemap/maths": "^9.0.0
|
|
17
|
-
"@wemap/osm": "^9.0.0
|
|
18
|
-
"@wemap/routers": "^9.0.0
|
|
19
|
-
"@wemap/utils": "^
|
|
14
|
+
"@wemap/logger": "^9.0.0",
|
|
15
|
+
"@wemap/map": "^9.0.0",
|
|
16
|
+
"@wemap/maths": "^9.0.0",
|
|
17
|
+
"@wemap/osm": "^9.0.0",
|
|
18
|
+
"@wemap/routers": "^9.0.0",
|
|
19
|
+
"@wemap/utils": "^9.0.0"
|
|
20
20
|
},
|
|
21
21
|
"description": "A package using different geoloc systems",
|
|
22
22
|
"devDependencies": {
|
|
@@ -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
|
|
46
|
-
"gitHead": "
|
|
45
|
+
"version": "9.0.0",
|
|
46
|
+
"gitHead": "9f16c3cebf6f0e6d03a83835607528f5c37707cf"
|
|
47
47
|
}
|
|
@@ -313,7 +313,7 @@ class AbsoluteAttitude extends Provider {
|
|
|
313
313
|
throw Error('the accuracy of the attitude is not defined');
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
this._forceHeadingForRelative(new ProviderEvent(EventType.
|
|
316
|
+
this._forceHeadingForRelative(new ProviderEvent(EventType.Attitude, data));
|
|
317
317
|
|
|
318
318
|
} else if (data instanceof ProviderEvent) {
|
|
319
319
|
|