mobility-toolbox-js 2.0.0-beta.63 → 2.0.0-beta.64

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
@@ -48112,6 +48112,7 @@ uniform ${i3} ${o3} u_${a3};
48112
48112
  if (currOlLayer) {
48113
48113
  currOlLayer.setVisible(this.visible);
48114
48114
  }
48115
+ this.toggleVisibleListeners();
48115
48116
  }
48116
48117
  },
48117
48118
  olListenersKeys: {
@@ -48124,21 +48125,16 @@ uniform ${i3} ${o3} u_${a3};
48124
48125
  if (!this.map) {
48125
48126
  return;
48126
48127
  }
48128
+ this.olLayer?.setVisible(this.visible);
48127
48129
  if (this.olLayer && !this.map?.getLayers()?.getArray()?.includes(this.olLayer)) {
48128
48130
  this.map.addLayer(this.olLayer);
48129
48131
  }
48130
- this.olListenersKeys.push(this.on("change:visible", () => {
48131
- if (this.olLayer) {
48132
- this.olLayer.setVisible(this.visible);
48133
- }
48134
- }));
48135
48132
  this.olListenersKeys.push(this.map.getLayers().on("remove", (evt) => {
48136
48133
  if (evt.element === this.olLayer) {
48137
48134
  this.detachFromMap();
48138
48135
  }
48139
48136
  }));
48140
48137
  this.toggleVisibleListeners();
48141
- this.olListenersKeys.push(this.on("change:visible", this.toggleVisibleListeners));
48142
48138
  if (this.copyrights && this.olLayer) {
48143
48139
  const attributions = this.copyrights || [];
48144
48140
  if (this.olLayer.getLayers) {