mobility-toolbox-js 2.0.0-beta.25 → 2.0.0-beta.28

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.
@@ -169,7 +169,7 @@ const RealtimeLayerMixin = (Base) => class extends Base {
169
169
  writable: true
170
170
  },
171
171
  useThrottle: {
172
- value: options.useThrottle || true,
172
+ value: options.useThrottle !== false,
173
173
  writable: true
174
174
  },
175
175
  useDebounce: {
@@ -97,6 +97,9 @@ class RealtimeLayer extends mixin(Layer) {
97
97
  });
98
98
  }
99
99
  renderTrajectories(noInterpolate) {
100
+ if (!this.map) {
101
+ return;
102
+ }
100
103
  const { width, height } = this.map.getCanvas();
101
104
  const center = this.map.getCenter();
102
105
  const leftBottom = this.map.unproject({
package/mbt.js CHANGED
@@ -48702,7 +48702,7 @@ uniform ${i3} ${o3} u_${a3};
48702
48702
  writable: true
48703
48703
  },
48704
48704
  useThrottle: {
48705
- value: options.useThrottle || true,
48705
+ value: options.useThrottle !== false,
48706
48706
  writable: true
48707
48707
  },
48708
48708
  useDebounce: {
@@ -49990,6 +49990,9 @@ uniform ${i3} ${o3} u_${a3};
49990
49990
  });
49991
49991
  }
49992
49992
  renderTrajectories(noInterpolate) {
49993
+ if (!this.map) {
49994
+ return;
49995
+ }
49993
49996
  const { width, height } = this.map.getCanvas();
49994
49997
  const center = this.map.getCenter();
49995
49998
  const leftBottom = this.map.unproject({