proximiio-js-library 1.12.77 → 1.12.78

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.
@@ -2768,16 +2768,18 @@ export class Map {
2768
2768
  // @ts-ignore;
2769
2769
  this.map.fitBounds(boundingBox, {
2770
2770
  padding: this.defaultOptions.fitBoundsPadding,
2771
- bearing: this.map.getBearing(),
2771
+ bearing: 0,
2772
2772
  pitch: this.map.getPitch(),
2773
2773
  animate: false,
2774
+ maxZoom: 15,
2774
2775
  });
2775
2776
  }
2776
2777
  else {
2777
2778
  // @ts-ignore
2778
2779
  this.map.flyTo({
2779
2780
  center: center(routeToCenter).geometry.coordinates,
2780
- zoom: this.defaultOptions.minFitBoundsDistance < 10 ? 22 : this.map.getZoom(),
2781
+ zoom: this.defaultOptions.minFitBoundsDistance < 10 ? 15 : this.map.getZoom(),
2782
+ bearing: 0,
2781
2783
  });
2782
2784
  }
2783
2785
  return;
@@ -3000,6 +3002,9 @@ export class Map {
3000
3002
  this.lerp(cameraCoords[1], targetCoords[1], this.defaultOptions.routeAnimation.cameraLerpTolerance),
3001
3003
  ];
3002
3004
  if (!this.defaultOptions.routeAnimation.followRouteAngle) {
3005
+ if (this.routingSource.navigationType === 'city') {
3006
+ this.map.setBearing(0);
3007
+ }
3003
3008
  this.map.easeTo({
3004
3009
  center: this.defaultOptions.routeAnimation.cameraUseLerp
3005
3010
  ? interpolatedCoords