mobility-toolbox-js 3.0.0-beta.12 → 3.0.0-beta.14

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
@@ -17859,6 +17859,7 @@ uniform ${i3} ${s3} u_${a3};
17859
17859
  Layer: () => Layer_default4,
17860
17860
  MaplibreLayer: () => MaplibreLayer_default,
17861
17861
  MaplibreStyleLayer: () => MaplibreStyleLayer_default,
17862
+ MobilityLayerMixin: () => MobilityLayerMixin_default,
17862
17863
  RealtimeAPI: () => RealtimeAPI_default,
17863
17864
  RealtimeLayer: () => RealtimeLayer_default,
17864
17865
  RealtimeModes: () => RealtimeModes,
@@ -44756,8 +44757,15 @@ uniform ${i3} ${s3} u_${a3};
44756
44757
  * @param {FilterFunction} [options.layersFilter] Filter function to decide which style layer to apply visiblity on. If not provided, the 'layers' property is used.
44757
44758
  * @param {FilterFunction} [options.queryRenderedLayersFilter] Filter function to decide which style layer are available for query.
44758
44759
  */
44759
- constructor(options) {
44760
- super({ source: new Source_default({}), ...options || {} });
44760
+ constructor(options = {}) {
44761
+ if (options.mapboxLayer) {
44762
+ console.warn(
44763
+ "options.mapboxLayer is deprecated. Use options.maplibreLayer instead."
44764
+ );
44765
+ options.maplibreLayer = options.mapboxLayer;
44766
+ delete options.mapboxLayer;
44767
+ }
44768
+ super({ source: new Source_default({}), ...options });
44761
44769
  this.highlightedFeatures = [];
44762
44770
  this.selectedFeatures = [];
44763
44771
  this.onLoad = this.onLoad.bind(this);