mobility-toolbox-js 3.0.0-beta.13 → 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 +9 -2
- package/mbt.js.map +2 -2
- package/mbt.min.js +1 -1
- package/mbt.min.js.map +2 -2
- package/ol/layers/MaplibreStyleLayer.d.ts +1 -1
- package/ol/layers/MaplibreStyleLayer.js +11 -2
- package/package.json +1 -1
package/mbt.js
CHANGED
|
@@ -44757,8 +44757,15 @@ uniform ${i3} ${s3} u_${a3};
|
|
|
44757
44757
|
* @param {FilterFunction} [options.layersFilter] Filter function to decide which style layer to apply visiblity on. If not provided, the 'layers' property is used.
|
|
44758
44758
|
* @param {FilterFunction} [options.queryRenderedLayersFilter] Filter function to decide which style layer are available for query.
|
|
44759
44759
|
*/
|
|
44760
|
-
constructor(options) {
|
|
44761
|
-
|
|
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 });
|
|
44762
44769
|
this.highlightedFeatures = [];
|
|
44763
44770
|
this.selectedFeatures = [];
|
|
44764
44771
|
this.onLoad = this.onLoad.bind(this);
|