@wemap/providers 10.2.0 → 10.2.2

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
@@ -12,7 +12,7 @@
12
12
  "@wemap/geo": "^10.1.0",
13
13
  "@wemap/geomagnetism": "^0.1.1",
14
14
  "@wemap/logger": "^10.0.0",
15
- "@wemap/map": "^10.1.0",
15
+ "@wemap/map": "^10.2.2",
16
16
  "@wemap/maths": "^10.0.0",
17
17
  "@wemap/osm": "^10.1.0",
18
18
  "@wemap/routers": "^10.1.0",
@@ -42,6 +42,6 @@
42
42
  "url": "git+https://github.com/wemap/wemap-modules-js.git"
43
43
  },
44
44
  "type": "module",
45
- "version": "10.2.0",
46
- "gitHead": "c90d603fbed21b566a197eb5ad3a30c54921bf54"
45
+ "version": "10.2.2",
46
+ "gitHead": "32219e1a26082fcb94c17d52ac452f03afa374d8"
47
47
  }
@@ -52,13 +52,15 @@ class GnssWifi extends Provider {
52
52
  * @override
53
53
  */
54
54
  start() {
55
-
56
- this.geoLocationId = navigator.geolocation.watchPosition(
57
- this.onNewPosition,
58
- this.onPositionError,
59
- GnssWifi.POSITION_OPTIONS
60
- );
61
-
55
+ // Note: added timeout for a workaround on Safari/iOS when user disabled geolocation:
56
+ // watchPosition does not send the error callback without the "setTimeout"
57
+ setTimeout(() => {
58
+ this.geoLocationId = navigator.geolocation.watchPosition(
59
+ this.onNewPosition,
60
+ this.onPositionError,
61
+ GnssWifi.POSITION_OPTIONS
62
+ );
63
+ }, 150);
62
64
  }
63
65
 
64
66
  /**