mobility-toolbox-js 3.0.0-beta.4 → 3.0.0-beta.6

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.
@@ -56,7 +56,7 @@ class MapGlLayer extends MobilityLayerMixin(Layer) {
56
56
  this.loadMbMap();
57
57
  const updateMbMapDebounced = debounce(this.updateMbMap.bind(this), 150);
58
58
  this.olListenersKeys.push(this.on('propertychange', (evt) => {
59
- if (/(apiKey|apiKeyName|url|style|)/.test(evt.key)) {
59
+ if (/(apiKey|apiKeyName|url|style)/.test(evt.key)) {
60
60
  updateMbMapDebounced();
61
61
  }
62
62
  }));
@@ -165,7 +165,7 @@ class MaplibreStyleLayer extends MobilityLayerMixin(Layer) {
165
165
  // the style. Maplibre take care of the application of style changes.
166
166
  this.applyLayoutVisibility(evt);
167
167
  }), this.on('propertychange', (evt) => {
168
- if (/(sources|layers|layersFilter|maplibreLayer|beforeId|)/.test(evt.key)) {
168
+ if (/(sources|layers|layersFilter|maplibreLayer|beforeId)/.test(evt.key)) {
169
169
  this.detachFromMap();
170
170
  this.attachToMap(map);
171
171
  }
@@ -189,7 +189,7 @@ function PropertiesLayerMixin(Base) {
189
189
  this.map.removeLayer(child);
190
190
  });
191
191
  // @ts-ignore
192
- (super.detachFromMap || (() => { }))(map);
192
+ (super.detachFromMap || (() => { }))();
193
193
  }
194
194
  /**
195
195
  * Return the an array containing all the descendants of the layer in a flat array. Including the current layer.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "mobility-toolbox-js",
3
3
  "license": "MIT",
4
4
  "description": "Toolbox for JavaScript applications in the domains of mobility and logistics.",
5
- "version": "3.0.0-beta.4",
5
+ "version": "3.0.0-beta.6",
6
6
  "homepage": "https://mobility-toolbox-js.geops.io/",
7
7
  "module": "index.js",
8
8
  "exports": {