@nextgis/ngw-leaflet 3.0.0-alpha.14 → 3.0.0-alpha.15

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.
@@ -22904,15 +22904,19 @@ function createRasterAdapter(_0) {
22904
22904
  }
22905
22905
  showLayer() {
22906
22906
  this._layerVisibility = true;
22907
- if (this.layer) {
22908
- if (!this._blocked) {
22907
+ if (!this._blocked) {
22908
+ if (super.showLayer) {
22909
+ super.showLayer(this.layer);
22910
+ } else if (this.layer) {
22909
22911
  webMap.mapAdapter.showLayer(this.layer);
22910
22912
  }
22911
22913
  }
22912
22914
  }
22913
22915
  hideLayer() {
22914
22916
  this._layerVisibility = false;
22915
- if (this.layer) {
22917
+ if (super.hideLayer) {
22918
+ super.hideLayer(this.layer);
22919
+ } else if (this.layer) {
22916
22920
  webMap.mapAdapter.hideLayer(this.layer);
22917
22921
  }
22918
22922
  }
@@ -23459,24 +23463,26 @@ function getCompanyLogo(connector, options) {
23459
23463
  img.style.maxHeight = "100px";
23460
23464
  img.style.maxWidth = "100px";
23461
23465
  img.src = "";
23462
- try {
23463
- const resp = yield connector.route("pyramid.csettings").get();
23464
- const logo = (_b = resp.pyramid) == null ? void 0 : _b.header_logo;
23465
- if (logo) {
23466
- const [mimeType, base64Data] = logo;
23467
- const byteCharacters = atob(base64Data);
23468
- const byteNumbers = new Array(byteCharacters.length);
23469
- for (let i = 0; i < byteCharacters.length; i++) {
23470
- byteNumbers[i] = byteCharacters.charCodeAt(i);
23471
- }
23472
- const byteArray = new Uint8Array(byteNumbers);
23473
- const blob = new Blob([byteArray], { type: mimeType });
23474
- const urlCreator = window.URL || window.webkitURL;
23475
- const imageUrl = urlCreator.createObjectURL(blob);
23476
- img.src = imageUrl;
23466
+ const resp = yield connector.route("pyramid.csettings").get({
23467
+ query: {
23468
+ pyramid: ["header_logo"]
23477
23469
  }
23478
- } catch (er) {
23479
- console.warn(er);
23470
+ });
23471
+ const logo = (_b = resp.pyramid) == null ? void 0 : _b.header_logo;
23472
+ if (logo) {
23473
+ const [mimeType, base64Data] = logo;
23474
+ const byteCharacters = atob(base64Data);
23475
+ const byteNumbers = new Array(byteCharacters.length);
23476
+ for (let i = 0; i < byteCharacters.length; i++) {
23477
+ byteNumbers[i] = byteCharacters.charCodeAt(i);
23478
+ }
23479
+ const byteArray = new Uint8Array(byteNumbers);
23480
+ const blob = new Blob([byteArray], { type: mimeType });
23481
+ const urlCreator = window.URL || window.webkitURL;
23482
+ const imageUrl = urlCreator.createObjectURL(blob);
23483
+ img.src = imageUrl;
23484
+ } else {
23485
+ return;
23480
23486
  }
23481
23487
  if (settings.company_logo.link !== null && settings.company_logo.link.trim() !== "") {
23482
23488
  anchor.href = settings.company_logo.link;