proximiio-js-library 1.8.4 → 1.8.5

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.
@@ -1533,10 +1533,14 @@ var Map = /** @class */ (function () {
1533
1533
  Map.prototype.getUpcomingFloorNumber = function (way) {
1534
1534
  var _this = this;
1535
1535
  if (this.routingSource.lines && this.routingSource.route) {
1536
- var currentRouteIndex_1 = this.routingSource.lines.findIndex(function (route) { return +route.properties.level === _this.state.floor.level; });
1537
- var currentRoute = this.routingSource.lines[currentRouteIndex_1];
1538
- var nextRouteIndex = this.routingSource.lines.findIndex(function (route) { return +route.properties.level === (way === 'up' ? currentRouteIndex_1 + 1 : currentRouteIndex_1 - 1); });
1536
+ var currentRouteIndex = this.routingSource.lines.findIndex(function (route) { return +route.properties.level === _this.state.floor.level; });
1537
+ var currentRoute_1 = this.routingSource.lines[currentRouteIndex];
1538
+ var nextRouteIndex = this.routingSource.lines.findIndex(function (route) {
1539
+ return +route.properties.level ===
1540
+ (way === 'up' ? currentRoute_1.properties.level + 1 : currentRoute_1.properties.level - 1);
1541
+ });
1539
1542
  var nextRoute = this.routingSource.lines[nextRouteIndex];
1543
+ console.log(currentRouteIndex, nextRouteIndex, this.routingSource);
1540
1544
  // return currentRouteIndex !== -1 && nextRoute ? +nextRoute.properties.level : way === 'up' ? this.state.floor.level + 1 : this.state.floor.level - 1;
1541
1545
  return nextRoute &&
1542
1546
  ((way === 'up' && +nextRoute.properties.level > this.state.floor.level) ||