proximiio-js-library 1.17.3 → 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.
- package/lib/components/map/main.js +7 -1
- package/lib/proximiio.js +1 -1
- package/package.json +1 -1
|
@@ -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) {
|