mobility-toolbox-js 3.0.0-beta.21 → 3.0.0-beta.22

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.
package/api/StopsAPI.js CHANGED
@@ -26,7 +26,7 @@ class StopsAPI extends HttpAPI {
26
26
  * @public
27
27
  */
28
28
  constructor(options = {}) {
29
- super(Object.assign({ url: 'https://api.geops.io/stops/v1/' }, options));
29
+ super(Object.assign(Object.assign({}, options), { url: options.url || 'https://api.geops.io/stops/v1/' }));
30
30
  }
31
31
  /**
32
32
  * Search for stops.
@@ -51,7 +51,7 @@ class StopFinderControlCommon {
51
51
  var _a;
52
52
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
53
53
  this.abortController = new AbortController();
54
- // @ts-expect-error
54
+ // @ts-expect-error - Improve ts
55
55
  this.search(evt.target.value, this.abortController);
56
56
  };
57
57
  Object.assign(this.inputElt.style, {
package/mbt.js CHANGED
@@ -26510,7 +26510,7 @@ uniform ${i3} ${a3} u_${s3};
26510
26510
  * @public
26511
26511
  */
26512
26512
  constructor(options = {}) {
26513
- super({ url: "https://api.geops.io/stops/v1/", ...options });
26513
+ super({ ...options, url: options.url || "https://api.geops.io/stops/v1/" });
26514
26514
  }
26515
26515
  /**
26516
26516
  * Search for stops.
@@ -52350,6 +52350,10 @@ uniform ${i3} ${a3} u_${s3};
52350
52350
  );
52351
52351
  }
52352
52352
  /** @deprecated */
52353
+ // get olListenersKeys(): EventsKey[] {
52354
+ // return this.olEventsKeys;
52355
+ // }
52356
+ /** @deprecated */
52353
52357
  get parent() {
52354
52358
  deprecated(
52355
52359
  "Layer.parent is deprecated. Use the Layer.get('parent') method instead."
@@ -52445,6 +52449,7 @@ uniform ${i3} ${a3} u_${s3};
52445
52449
  this.updateMaplibreMap.bind(this),
52446
52450
  150
52447
52451
  );
52452
+ updateMaplibreMapDebounced();
52448
52453
  this.olEventsKeys.push(
52449
52454
  this.on("propertychange", (evt) => {
52450
52455
  if (/(url|style)/.test(evt.key)) {
@@ -54379,7 +54384,7 @@ uniform ${i3} ${a3} u_${s3};
54379
54384
  features = this.map.getFeaturesAtPixel(pixel, {
54380
54385
  hitTolerance: this.hitTolerance || 5,
54381
54386
  layerFilter: (l) => l === this.olLayer
54382
- });
54387
+ }) || [];
54383
54388
  }
54384
54389
  return Promise.resolve({
54385
54390
  coordinate,