@wemap/providers 3.2.12 → 3.2.14
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
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@wemap/geo": "^3.2.6",
|
|
12
|
-
"@wemap/graph": "^3.2.
|
|
12
|
+
"@wemap/graph": "^3.2.14",
|
|
13
13
|
"@wemap/logger": "^3.2.3",
|
|
14
|
-
"@wemap/map": "^3.2.
|
|
14
|
+
"@wemap/map": "^3.2.13",
|
|
15
15
|
"@wemap/maths": "^3.2.3",
|
|
16
|
-
"@wemap/utils": "^3.2.
|
|
16
|
+
"@wemap/utils": "^3.2.13",
|
|
17
17
|
"geomagnetism": "^0.1.0",
|
|
18
18
|
"lodash.isempty": "^4.4.0",
|
|
19
19
|
"lodash.noop": "^3.0.1"
|
|
20
20
|
},
|
|
21
21
|
"description": "A package using different geoloc systems",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@wemap/osm": "^3.2.
|
|
23
|
+
"@wemap/osm": "^3.2.14",
|
|
24
24
|
"mapbox-gl": "^1.11.1"
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/wemap/wemap-modules-js#readme",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"url": "git+https://github.com/wemap/wemap-modules-js.git"
|
|
43
43
|
},
|
|
44
44
|
"type": "module",
|
|
45
|
-
"version": "3.2.
|
|
46
|
-
"gitHead": "
|
|
45
|
+
"version": "3.2.14",
|
|
46
|
+
"gitHead": "20a86fb7ec3334eff24a526b22603b0a44409d50"
|
|
47
47
|
}
|
|
@@ -78,6 +78,7 @@ class AbsoluteAttitudeFromBrowserProvider extends Provider {
|
|
|
78
78
|
break;
|
|
79
79
|
|
|
80
80
|
case Browser.SAFARI:
|
|
81
|
+
case Browser.IOS_WEBVIEW:
|
|
81
82
|
window.addEventListener('deviceorientation',
|
|
82
83
|
this.onDeviceOrientationSafariEvent, true);
|
|
83
84
|
break;
|
|
@@ -123,6 +124,7 @@ class AbsoluteAttitudeFromBrowserProvider extends Provider {
|
|
|
123
124
|
break;
|
|
124
125
|
|
|
125
126
|
case Browser.SAFARI:
|
|
127
|
+
case Browser.IOS_WEBVIEW:
|
|
126
128
|
window.removeEventListener('deviceorientation',
|
|
127
129
|
this.onDeviceOrientationSafariEvent, true);
|
|
128
130
|
break;
|
|
@@ -95,7 +95,8 @@ class ImuProvider extends Provider {
|
|
|
95
95
|
if (typeof x === 'number' && typeof y === 'number' && typeof z === 'number') {
|
|
96
96
|
acc = [x, y, z];
|
|
97
97
|
|
|
98
|
-
if (BrowserUtils.name === Browser.SAFARI
|
|
98
|
+
if (BrowserUtils.name === Browser.SAFARI
|
|
99
|
+
|| BrowserUtils.name === Browser.IOS_WEBVIEW) {
|
|
99
100
|
acc[0] *= -1;
|
|
100
101
|
acc[1] *= -1;
|
|
101
102
|
acc[2] *= -1;
|