mobility-toolbox-js 3.0.0-beta.28 → 3.0.0-beta.29

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
@@ -52204,14 +52204,11 @@ uniform ${i3} ${a3} u_${s3};
52204
52204
  );
52205
52205
  this.setProperties(options.properties);
52206
52206
  }
52207
- this.olEventsKeys?.push(
52208
- // Update parent property
52209
- this.on("propertychange", (evt) => {
52210
- if (evt.key === "children") {
52211
- this.onChildrenChange(evt.oldValue);
52212
- }
52213
- })
52214
- );
52207
+ this.on("propertychange", (evt) => {
52208
+ if (evt.key === "children") {
52209
+ this.onChildrenChange(evt.oldValue);
52210
+ }
52211
+ });
52215
52212
  this.options = options;
52216
52213
  this.set("children", options.children || []);
52217
52214
  }
@@ -52231,6 +52228,7 @@ uniform ${i3} ${a3} u_${s3};
52231
52228
  * Terminate what was initialized in init function. Remove layer, events...
52232
52229
  */
52233
52230
  detachFromMap() {
52231
+ unByKey(this.olEventsKeys);
52234
52232
  (this.get("children") || []).forEach((child) => {
52235
52233
  this.map.removeLayer(child);
52236
52234
  });