@wemap/positioning 2.4.1 → 2.4.3
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
|
@@ -84,7 +84,9 @@ class PositioningPoseComponent extends React.Component {
|
|
|
84
84
|
const positionRender = Utils.renderPosition(this.state.position);
|
|
85
85
|
|
|
86
86
|
const itineraryRender = Utils.renderItineraryInfo(
|
|
87
|
-
this.state.position
|
|
87
|
+
this.state.position && !(this.state.position instanceof Error)
|
|
88
|
+
? Utils.ITINERARY.getInfo(this.state.position)
|
|
89
|
+
: null
|
|
88
90
|
);
|
|
89
91
|
|
|
90
92
|
return (
|
|
@@ -34,6 +34,10 @@ class GnssWifiPdrProvider extends MapMatchingProvider {
|
|
|
34
34
|
this.gpsLastUpdate = 0;
|
|
35
35
|
this.isFirstGnssUpdate = true;
|
|
36
36
|
this.isFirstAttitudeUpdate = true;
|
|
37
|
+
|
|
38
|
+
if (this.options.useMapMatching) {
|
|
39
|
+
this.enableMapMatching();
|
|
40
|
+
}
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
|
|
@@ -192,13 +196,11 @@ class GnssWifiPdrProvider extends MapMatchingProvider {
|
|
|
192
196
|
console.warn('Itinerary has not been calculated from GnssWifiPdrProvider and these is not recommanded');
|
|
193
197
|
}
|
|
194
198
|
|
|
195
|
-
|
|
196
|
-
if (
|
|
197
|
-
|
|
198
|
-
} else {
|
|
199
|
-
startEdge = itinerary.secondEdge;
|
|
199
|
+
const startEdge = itinerary.getEdgeAt(MM_GNSS_DIST);
|
|
200
|
+
if (!startEdge) {
|
|
201
|
+
return;
|
|
200
202
|
}
|
|
201
|
-
const startPoint = WGS84UserPosition.fromWGS84(startEdge.node1);
|
|
203
|
+
const startPoint = WGS84UserPosition.fromWGS84(startEdge.node1.coords);
|
|
202
204
|
startPoint.alt = Constants.DEFAULT_ALTITUDE;
|
|
203
205
|
this.pdrProvider.setPosition(startPoint);
|
|
204
206
|
this.pdrProvider.setStepDetectionLockerOrientation(startEdge.bearing);
|