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

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
@@ -48098,8 +48098,22 @@ uniform ${i3} ${o3} u_${a3};
48098
48098
  }
48099
48099
  defineProperties(options) {
48100
48100
  super.defineProperties(options);
48101
+ let currOlLayer = options.olLayer;
48101
48102
  Object.defineProperties(this, {
48102
- olLayer: { value: options.olLayer, writable: true },
48103
+ olLayer: {
48104
+ get: () => {
48105
+ return currOlLayer;
48106
+ },
48107
+ set: (newOlLayer) => {
48108
+ if (currOlLayer === newOlLayer) {
48109
+ return;
48110
+ }
48111
+ currOlLayer = newOlLayer;
48112
+ if (currOlLayer) {
48113
+ currOlLayer.setVisible(this.visible);
48114
+ }
48115
+ }
48116
+ },
48103
48117
  olListenersKeys: {
48104
48118
  value: []
48105
48119
  }