mobility-toolbox-js 3.0.0-beta.23 → 3.0.0-beta.24
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 +3 -7
- package/mbt.js.map +2 -2
- package/mbt.min.js +1 -1
- package/mbt.min.js.map +2 -2
- package/ol/layers/MaplibreLayer.js +1 -1
- package/ol/mixins/PropertiesLayerMixin.js +2 -1
- package/package.json +1 -1
|
@@ -105,7 +105,7 @@ class MaplibreLayer extends MobilityLayerMixin(MapLibreLayer) {
|
|
|
105
105
|
return this.url;
|
|
106
106
|
}
|
|
107
107
|
/// Otherwise build the complete style url.
|
|
108
|
-
return buildStyleUrl(this.url, this.style, this.
|
|
108
|
+
return buildStyleUrl(this.url, this.style, this.apiKey, this.apiKeyName);
|
|
109
109
|
}
|
|
110
110
|
updateMaplibreMap() {
|
|
111
111
|
var _a;
|
|
@@ -77,12 +77,13 @@ function PropertiesLayerMixin(Base) {
|
|
|
77
77
|
}
|
|
78
78
|
// @ts-expect-error - this is a mixin
|
|
79
79
|
setMapInternal(map) {
|
|
80
|
-
super.setMapInternal(map);
|
|
81
80
|
if (map) {
|
|
81
|
+
super.setMapInternal(map);
|
|
82
82
|
this.attachToMap(map);
|
|
83
83
|
}
|
|
84
84
|
else {
|
|
85
85
|
this.detachFromMap();
|
|
86
|
+
super.setMapInternal(map);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
/** @deprecated */
|
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.24",
|
|
6
6
|
"homepage": "https://mobility-toolbox-js.geops.io/",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./index.js",
|