proximiio-js-library 1.13.39 → 1.13.40
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.
|
@@ -150,6 +150,7 @@ export interface Options {
|
|
|
150
150
|
lineProgress?: boolean;
|
|
151
151
|
showTailSegment?: boolean;
|
|
152
152
|
showCompassDirection?: boolean;
|
|
153
|
+
stepChangeThreshold?: number;
|
|
153
154
|
};
|
|
154
155
|
useRasterTiles?: boolean;
|
|
155
156
|
rasterTilesOptions?: {
|
|
@@ -1420,10 +1421,12 @@ export declare class Map {
|
|
|
1420
1421
|
* map.onSetCustomPosition({ coordinates: [17.833135351538658, 48.60678469647394], level: 0});
|
|
1421
1422
|
* });
|
|
1422
1423
|
*/
|
|
1423
|
-
setCustomPosition({ coordinates, level, recenter, }: {
|
|
1424
|
+
setCustomPosition({ coordinates, level, recenter, iconSize, arrowSize, }: {
|
|
1424
1425
|
coordinates: [number, number];
|
|
1425
1426
|
level: number;
|
|
1426
1427
|
recenter?: boolean;
|
|
1428
|
+
iconSize?: number;
|
|
1429
|
+
arrowSize?: number;
|
|
1427
1430
|
}): void;
|
|
1428
1431
|
/**
|
|
1429
1432
|
* Method for setting custom position
|
|
@@ -211,6 +211,7 @@ export class Map {
|
|
|
211
211
|
lineProgress: false,
|
|
212
212
|
showTailSegment: false,
|
|
213
213
|
showCompassDirection: false,
|
|
214
|
+
stepChangeThreshold: 5,
|
|
214
215
|
},
|
|
215
216
|
useRasterTiles: false,
|
|
216
217
|
handleUrlParams: false,
|
|
@@ -3708,7 +3709,7 @@ export class Map {
|
|
|
3708
3709
|
setInitialBearing(bearingValue) {
|
|
3709
3710
|
this.routingSource.setInitialBearing(bearingValue);
|
|
3710
3711
|
}
|
|
3711
|
-
onSetCustomPosition({ coordinates, level, recenter = true, }) {
|
|
3712
|
+
onSetCustomPosition({ coordinates, level, recenter = true, iconSize = 1.5, arrowSize = 1.25, }) {
|
|
3712
3713
|
var _a;
|
|
3713
3714
|
// Initialize debounce/cooldown tracking
|
|
3714
3715
|
this.floorChangeBuffer = this.floorChangeBuffer || [];
|
|
@@ -3788,7 +3789,7 @@ export class Map {
|
|
|
3788
3789
|
type: 'symbol',
|
|
3789
3790
|
source: 'custom-position-point',
|
|
3790
3791
|
layout: {
|
|
3791
|
-
'icon-size':
|
|
3792
|
+
'icon-size': iconSize,
|
|
3792
3793
|
'icon-image': 'pulsing-dot',
|
|
3793
3794
|
'icon-allow-overlap': true,
|
|
3794
3795
|
},
|
|
@@ -3801,7 +3802,7 @@ export class Map {
|
|
|
3801
3802
|
source: 'custom-position-point',
|
|
3802
3803
|
layout: {
|
|
3803
3804
|
'icon-image': 'heading-arrow',
|
|
3804
|
-
'icon-size':
|
|
3805
|
+
'icon-size': arrowSize,
|
|
3805
3806
|
'icon-rotate': ['get', 'bearing'],
|
|
3806
3807
|
'icon-rotation-alignment': 'map',
|
|
3807
3808
|
'icon-allow-overlap': true,
|
|
@@ -3822,6 +3823,7 @@ export class Map {
|
|
|
3822
3823
|
userPosition: coordinates,
|
|
3823
3824
|
steps: this.routingSource.steps,
|
|
3824
3825
|
lastKnownStepIndex: this.currentStep,
|
|
3826
|
+
thresholdMeters: this.defaultOptions.routeAnimation.stepChangeThreshold,
|
|
3825
3827
|
});
|
|
3826
3828
|
this.setNavStep(stepIndex);
|
|
3827
3829
|
}
|
|
@@ -5386,8 +5388,8 @@ export class Map {
|
|
|
5386
5388
|
* map.onSetCustomPosition({ coordinates: [17.833135351538658, 48.60678469647394], level: 0});
|
|
5387
5389
|
* });
|
|
5388
5390
|
*/
|
|
5389
|
-
setCustomPosition({ coordinates, level, recenter = true, }) {
|
|
5390
|
-
this.onSetCustomPosition({ coordinates, level, recenter });
|
|
5391
|
+
setCustomPosition({ coordinates, level, recenter = true, iconSize, arrowSize, }) {
|
|
5392
|
+
this.onSetCustomPosition({ coordinates, level, recenter, iconSize, arrowSize });
|
|
5391
5393
|
}
|
|
5392
5394
|
/**
|
|
5393
5395
|
* Method for setting custom position
|