@wemap/providers 12.7.0 → 12.7.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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/mapmatching/MapMatchingHandler.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2823,11 +2823,11 @@ const _MapMatchingHandler = class _MapMatchingHandler extends Provider {
|
|
|
2823
2823
|
return this.enabled && this.graph;
|
|
2824
2824
|
}
|
|
2825
2825
|
_notifyPositionFromItineraryInput(itinerary) {
|
|
2826
|
-
if (!this._useItineraryStartAsPosition || itinerary.
|
|
2826
|
+
if (!this._useItineraryStartAsPosition || !itinerary.origin) {
|
|
2827
2827
|
return;
|
|
2828
2828
|
}
|
|
2829
2829
|
const lastPosition = AbsolutePositionProvider$1.lastEvent || null;
|
|
2830
|
-
const newPosition = UserPosition.fromCoordinates(itinerary.
|
|
2830
|
+
const newPosition = UserPosition.fromCoordinates(itinerary.origin);
|
|
2831
2831
|
if (lastPosition) {
|
|
2832
2832
|
newPosition.alt = lastPosition.alt;
|
|
2833
2833
|
newPosition.time = lastPosition.time;
|