proximiio-js-library 1.17.2 → 1.17.4
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.
|
@@ -207,7 +207,7 @@ export default class GuidanceStepsGenerator {
|
|
|
207
207
|
return [
|
|
208
208
|
step.totalDistance ? step.totalDistance.toFixed(0) : 0,
|
|
209
209
|
t.METERS,
|
|
210
|
-
|
|
210
|
+
t.IN,
|
|
211
211
|
this.getDirectionInstruction(direction),
|
|
212
212
|
].join(' ');
|
|
213
213
|
}
|
|
@@ -252,7 +252,7 @@ export default class GuidanceStepsGenerator {
|
|
|
252
252
|
return [
|
|
253
253
|
step.totalDistance ? step.totalDistance.toFixed(0) : 0,
|
|
254
254
|
t.METERS,
|
|
255
|
-
|
|
255
|
+
t.IN,
|
|
256
256
|
this.getDirectionInstruction(direction),
|
|
257
257
|
].join(' ');
|
|
258
258
|
}
|
|
@@ -270,7 +270,7 @@ export default class GuidanceStepsGenerator {
|
|
|
270
270
|
return [
|
|
271
271
|
step.totalDistance ? step.totalDistance.toFixed(0) : 0,
|
|
272
272
|
t.METERS,
|
|
273
|
-
|
|
273
|
+
t.IN,
|
|
274
274
|
this.getDirectionInstruction(direction),
|
|
275
275
|
].join(' ');
|
|
276
276
|
}
|
|
@@ -3748,7 +3748,10 @@ export class Map {
|
|
|
3748
3748
|
// Update the point position
|
|
3749
3749
|
// @ts-ignore
|
|
3750
3750
|
const pointData = this.map.getSource('pointAlong')._data;
|
|
3751
|
-
|
|
3751
|
+
if (!pointData.features) {
|
|
3752
|
+
pointData.features = [];
|
|
3753
|
+
}
|
|
3754
|
+
const currentCoords = pointData.features.length > 0 && pointData.features[0]
|
|
3752
3755
|
? pointData.features[0].geometry.coordinates
|
|
3753
3756
|
: currentPoint.geometry.coordinates;
|
|
3754
3757
|
const newCoords = currentPoint.geometry.coordinates;
|
|
@@ -3938,6 +3941,9 @@ export class Map {
|
|
|
3938
3941
|
clearTimeout(this.animationTimeout);
|
|
3939
3942
|
// @ts-ignore
|
|
3940
3943
|
const pointData = this.map.getSource('pointAlong')._data;
|
|
3944
|
+
if (!pointData.features) {
|
|
3945
|
+
pointData.features = [];
|
|
3946
|
+
}
|
|
3941
3947
|
const newCoords = this.routingSource.finish.geometry.coordinates;
|
|
3942
3948
|
pointData.features[0] = point(newCoords);
|
|
3943
3949
|
if (!this.useCustomPosition) {
|