mobility-toolbox-js 3.0.0-beta.22 → 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 +16 -8
- package/mbt.js.map +2 -2
- package/mbt.min.js +1 -1
- package/mbt.min.js.map +2 -2
- package/ol/layers/MaplibreLayer.d.ts +4 -0
- package/ol/layers/MaplibreLayer.js +14 -2
- package/ol/mixins/PropertiesLayerMixin.js +2 -1
- package/package.json +1 -1
package/mbt.js
CHANGED
|
@@ -52258,11 +52258,12 @@ uniform ${i3} ${a3} u_${s3};
|
|
|
52258
52258
|
}
|
|
52259
52259
|
// @ts-expect-error - this is a mixin
|
|
52260
52260
|
setMapInternal(map) {
|
|
52261
|
-
super.setMapInternal(map);
|
|
52262
52261
|
if (map) {
|
|
52262
|
+
super.setMapInternal(map);
|
|
52263
52263
|
this.attachToMap(map);
|
|
52264
52264
|
} else {
|
|
52265
52265
|
this.detachFromMap();
|
|
52266
|
+
super.setMapInternal(map);
|
|
52266
52267
|
}
|
|
52267
52268
|
}
|
|
52268
52269
|
/** @deprecated */
|
|
@@ -52452,7 +52453,7 @@ uniform ${i3} ${a3} u_${s3};
|
|
|
52452
52453
|
updateMaplibreMapDebounced();
|
|
52453
52454
|
this.olEventsKeys.push(
|
|
52454
52455
|
this.on("propertychange", (evt) => {
|
|
52455
|
-
if (/(url|style)/.test(evt.key)) {
|
|
52456
|
+
if (/(url|style|apiKey|apiKeyName)/.test(evt.key)) {
|
|
52456
52457
|
updateMaplibreMapDebounced();
|
|
52457
52458
|
}
|
|
52458
52459
|
})
|
|
@@ -52484,12 +52485,7 @@ uniform ${i3} ${a3} u_${s3};
|
|
|
52484
52485
|
if (this.url.includes("style.json")) {
|
|
52485
52486
|
return this.url;
|
|
52486
52487
|
}
|
|
52487
|
-
return buildStyleUrl(
|
|
52488
|
-
this.url,
|
|
52489
|
-
this.style,
|
|
52490
|
-
this.get("apiKey"),
|
|
52491
|
-
this.get("apiKeyName")
|
|
52492
|
-
);
|
|
52488
|
+
return buildStyleUrl(this.url, this.style, this.apiKey, this.apiKeyName);
|
|
52493
52489
|
}
|
|
52494
52490
|
updateMaplibreMap() {
|
|
52495
52491
|
try {
|
|
@@ -52498,6 +52494,18 @@ uniform ${i3} ${a3} u_${s3};
|
|
|
52498
52494
|
console.error("Error while updating MaplibreMap", e);
|
|
52499
52495
|
}
|
|
52500
52496
|
}
|
|
52497
|
+
set apiKey(newValue) {
|
|
52498
|
+
this.set("apiKey", newValue);
|
|
52499
|
+
}
|
|
52500
|
+
get apiKey() {
|
|
52501
|
+
return this.get("apiKey");
|
|
52502
|
+
}
|
|
52503
|
+
set apiKeyName(newValue) {
|
|
52504
|
+
this.set("apiKeyName", newValue);
|
|
52505
|
+
}
|
|
52506
|
+
get apiKeyName() {
|
|
52507
|
+
return this.get("apiKeyName");
|
|
52508
|
+
}
|
|
52501
52509
|
get maplibreMap() {
|
|
52502
52510
|
deprecated2(
|
|
52503
52511
|
"MaplibreLayer.maplibreMap is deprecated. Use layer.mapLibreMap."
|