mobility-toolbox-js 3.0.0-beta.24 → 3.0.0-beta.26

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
@@ -52324,6 +52324,13 @@ uniform ${i3} ${a3} u_${s3};
52324
52324
  );
52325
52325
  return this.get("hitTolerance") || 5;
52326
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
+ }
52327
52334
  get key() {
52328
52335
  return this.get("key") || this.get("name") || getUid(this);
52329
52336
  }
@@ -52643,6 +52650,20 @@ uniform ${i3} ${a3} u_${s3};
52643
52650
  options.maplibreLayer = options.mapboxLayer;
52644
52651
  delete options.mapboxLayer;
52645
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
+ }
52646
52667
  super({ source: new Source_default({}), ...options });
52647
52668
  this.highlightedFeatures = [];
52648
52669
  this.selectedFeatures = [];
@@ -54371,6 +54392,10 @@ uniform ${i3} ${a3} u_${s3};
54371
54392
  ...newOptions || {}
54372
54393
  });
54373
54394
  }
54395
+ // ol does not like when it returns null.
54396
+ createRenderer() {
54397
+ return new Layer_default3(this);
54398
+ }
54374
54399
  };
54375
54400
  var Layer_default4 = Layer2;
54376
54401