mobility-toolbox-js 3.0.0-beta.23 → 3.0.0-beta.25

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/mbt.js CHANGED
@@ -52258,11 +52258,12 @@ uniform ${i3} ${a3} u_${s3};
52258
52258
  }
52259
52259
  // @ts-expect-error - this is a mixin
52260
52260
  setMapInternal(map) {
52261
- super.setMapInternal(map);
52262
52261
  if (map) {
52262
+ super.setMapInternal(map);
52263
52263
  this.attachToMap(map);
52264
52264
  } else {
52265
52265
  this.detachFromMap();
52266
+ super.setMapInternal(map);
52266
52267
  }
52267
52268
  }
52268
52269
  /** @deprecated */
@@ -52323,6 +52324,13 @@ uniform ${i3} ${a3} u_${s3};
52323
52324
  );
52324
52325
  return this.get("hitTolerance") || 5;
52325
52326
  }
52327
+ /** @deprecated */
52328
+ set hitTolerance(newValue) {
52329
+ deprecated(
52330
+ "Layer.hitTolerance is deprecated.Pass the hitTolerance when you request the features."
52331
+ );
52332
+ this.set("hitTolerance", newValue);
52333
+ }
52326
52334
  get key() {
52327
52335
  return this.get("key") || this.get("name") || getUid(this);
52328
52336
  }
@@ -52484,12 +52492,7 @@ uniform ${i3} ${a3} u_${s3};
52484
52492
  if (this.url.includes("style.json")) {
52485
52493
  return this.url;
52486
52494
  }
52487
- return buildStyleUrl(
52488
- this.url,
52489
- this.style,
52490
- this.get("apiKey"),
52491
- this.get("apiKeyName")
52492
- );
52495
+ return buildStyleUrl(this.url, this.style, this.apiKey, this.apiKeyName);
52493
52496
  }
52494
52497
  updateMaplibreMap() {
52495
52498
  try {
@@ -52647,6 +52650,20 @@ uniform ${i3} ${a3} u_${s3};
52647
52650
  options.maplibreLayer = options.mapboxLayer;
52648
52651
  delete options.mapboxLayer;
52649
52652
  }
52653
+ if (options.styleLayers) {
52654
+ deprecated3(
52655
+ "options.styleLayers is deprecated. Use options.layers instead."
52656
+ );
52657
+ options.layers = options.styleLayers;
52658
+ delete options.styleLayers;
52659
+ }
52660
+ if (options.styleLayersFilter) {
52661
+ deprecated3(
52662
+ "options.styleLayersFilter is deprecated. Use options.layersFilter instead."
52663
+ );
52664
+ options.layersFilter = options.styleLayersFilter;
52665
+ delete options.styleLayersFilter;
52666
+ }
52650
52667
  super({ source: new Source_default({}), ...options });
52651
52668
  this.highlightedFeatures = [];
52652
52669
  this.selectedFeatures = [];