proximiio-js-library 1.12.13 → 1.12.15

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.
@@ -1167,13 +1167,12 @@ export class Map {
1167
1167
  const maxPitch = 60;
1168
1168
  const minPitch = this.defaultOptions.polygonsOptions.adaptiveMaxPitch;
1169
1169
  // Calculate opacity based on pitch
1170
- let opacity;
1171
- if (pitch >= minPitch) {
1172
- opacity = 0; // Opacity is 0 when pitch is greater than or equal to minPitch
1173
- }
1174
- else {
1175
- opacity = 1 - pitch / maxPitch; // Linear interpolation between 1 and 0 for pitch < minPitch
1176
- }
1170
+ const opacity = pitch >= minPitch ? 0 : 1;
1171
+ /*if (pitch >= minPitch) {
1172
+ opacity = 0; // Opacity is 0 when pitch is greater than or equal to minPitch
1173
+ } else {
1174
+ opacity = 1 - pitch / maxPitch; // Linear interpolation between 1 and 0 for pitch < minPitch
1175
+ }*/
1177
1176
  for (const layer of this.defaultOptions.polygonLayers) {
1178
1177
  if (layer.adaptiveLabelOpacity) {
1179
1178
  if (this.map.getLayer(`${layer.featureType}-labels`)) {
@@ -2504,7 +2503,10 @@ export class Map {
2504
2503
  }
2505
2504
  animateRoute() {
2506
2505
  var _a;
2507
- if (this.routingSource && this.routingSource.route && this.routingSource.route[`path-part-${this.currentStep}`]) {
2506
+ if (this.routingSource &&
2507
+ this.routingSource.route &&
2508
+ this.routingSource.route[`path-part-${this.currentStep}`] &&
2509
+ !this.routingSource.preview) {
2508
2510
  const route = this.routingSource.route[`path-part-${this.currentStep}`] &&
2509
2511
  ((_a = this.routingSource.route[`path-part-${this.currentStep}`].properties) === null || _a === void 0 ? void 0 : _a.level) === this.state.floor.level
2510
2512
  ? this.routingSource.route[`path-part-${this.currentStep}`]