proximiio-js-library 1.6.0 → 1.6.1

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.
@@ -1229,10 +1229,20 @@ var Map = /** @class */ (function () {
1229
1229
  if (this.defaultOptions.initPolygons) {
1230
1230
  this.handlePolygonSelection();
1231
1231
  }
1232
+ if (this.defaultOptions.showLevelDirectionIcon) {
1233
+ this.state.style.sources['direction-icon-source'].data = {
1234
+ type: 'FeatureCollection',
1235
+ features: [],
1236
+ };
1237
+ }
1232
1238
  if (this.defaultOptions.animatedRoute) {
1239
+ this.state.style.sources['route-point'].data = {
1240
+ type: 'FeatureCollection',
1241
+ features: [],
1242
+ };
1233
1243
  this.cancelAnimation();
1234
1244
  }
1235
- // TODO: remove direction icons
1245
+ this.map.setStyle(this.state.style);
1236
1246
  this.routingSource.cancel();
1237
1247
  this.onRouteCancelListener.next('route cancelled');
1238
1248
  };