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.
- package/mbt.js +113 -113
- package/mbt.js.map +3 -3
- package/mbt.min.js +1 -1
- package/mbt.min.js.map +2 -2
- package/ol/layers/MapGlLayer.js +1 -1
- package/ol/layers/MaplibreStyleLayer.js +1 -1
- package/ol/mixins/PropertiesLayerMixin.js +1 -1
- package/package.json +1 -1
package/ol/layers/MapGlLayer.js
CHANGED
|
@@ -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
|
|
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
|
|
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 || (() => { }))(
|
|
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.
|
|
5
|
+
"version": "3.0.0-beta.6",
|
|
6
6
|
"homepage": "https://mobility-toolbox-js.geops.io/",
|
|
7
7
|
"module": "index.js",
|
|
8
8
|
"exports": {
|