mobility-toolbox-js 2.0.0-beta.28 → 2.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.
@@ -158,13 +158,19 @@ class RealtimeLayer extends mixin(Layer) {
158
158
  super.setBbox(newExtent, newZoom);
159
159
  }
160
160
  onMove() {
161
- const extent = getSourceCoordinates(this.map, this.pixelRatio);
162
- const source = this.map.getSource(this.key);
163
- if (source) {
164
- source.setCoordinates(extent);
165
- }
166
161
  this.renderTrajectories();
167
162
  }
163
+ renderTrajectoriesInternal(viewState, noInterpolate) {
164
+ const render = super.renderTrajectoriesInternal(viewState, noInterpolate);
165
+ if (render) {
166
+ const extent = getSourceCoordinates(this.map, this.pixelRatio);
167
+ const source = this.map.getSource(this.key);
168
+ if (source) {
169
+ source.setCoordinates(extent);
170
+ }
171
+ }
172
+ return render;
173
+ }
168
174
  onMoveEnd() {
169
175
  this.renderTrajectories();
170
176
  if (this.visible && this.isUpdateBboxOnMoveEnd) {
package/mbt.js CHANGED
@@ -50051,13 +50051,19 @@ uniform ${i3} ${o3} u_${a3};
50051
50051
  super.setBbox(newExtent, newZoom);
50052
50052
  }
50053
50053
  onMove() {
50054
- const extent = getSourceCoordinates(this.map, this.pixelRatio);
50055
- const source = this.map.getSource(this.key);
50056
- if (source) {
50057
- source.setCoordinates(extent);
50058
- }
50059
50054
  this.renderTrajectories();
50060
50055
  }
50056
+ renderTrajectoriesInternal(viewState, noInterpolate) {
50057
+ const render = super.renderTrajectoriesInternal(viewState, noInterpolate);
50058
+ if (render) {
50059
+ const extent = getSourceCoordinates(this.map, this.pixelRatio);
50060
+ const source = this.map.getSource(this.key);
50061
+ if (source) {
50062
+ source.setCoordinates(extent);
50063
+ }
50064
+ }
50065
+ return render;
50066
+ }
50061
50067
  onMoveEnd() {
50062
50068
  this.renderTrajectories();
50063
50069
  if (this.visible && this.isUpdateBboxOnMoveEnd) {