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 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 */
@@ -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 {