mobility-toolbox-js 2.0.0-beta.80 → 2.0.0-beta.82
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/common/mixins/RealtimeLayerMixin.js +4 -4
- package/mbt.js +4 -4
- package/mbt.js.map +2 -2
- package/mbt.min.js +1 -1
- package/mbt.min.js.map +2 -2
- package/package.json +1 -1
|
@@ -486,9 +486,6 @@ function RealtimeLayerMixin(Base) {
|
|
|
486
486
|
const bbox = [...extent];
|
|
487
487
|
if (this.isUpdateBboxOnMoveEnd && zoom) {
|
|
488
488
|
bbox.push(zoom);
|
|
489
|
-
if (this.tenant) {
|
|
490
|
-
bbox.push(`tenant=${this.tenant}`);
|
|
491
|
-
}
|
|
492
489
|
/* @ignore */
|
|
493
490
|
this.generalizationLevel = this.getGeneralizationLevelByZoom(zoom);
|
|
494
491
|
if (this.generalizationLevel) {
|
|
@@ -500,6 +497,9 @@ function RealtimeLayerMixin(Base) {
|
|
|
500
497
|
bbox.push(`mots=${this.mots}`);
|
|
501
498
|
}
|
|
502
499
|
}
|
|
500
|
+
if (this.tenant) {
|
|
501
|
+
bbox.push(`tenant=${this.tenant}`);
|
|
502
|
+
}
|
|
503
503
|
this.api.bbox = bbox;
|
|
504
504
|
}
|
|
505
505
|
/**
|
|
@@ -621,7 +621,7 @@ function RealtimeLayerMixin(Base) {
|
|
|
621
621
|
*/
|
|
622
622
|
purgeTrajectory(trajectory, extent, zoom) {
|
|
623
623
|
const { type, bounds } = trajectory.properties;
|
|
624
|
-
if (!intersects(extent, bounds) ||
|
|
624
|
+
if ((this.isUpdateBboxOnMoveEnd && !intersects(extent, bounds)) ||
|
|
625
625
|
(this.mots && !this.mots.includes(type))) {
|
|
626
626
|
this.removeTrajectory(trajectory);
|
|
627
627
|
return true;
|
package/mbt.js
CHANGED
|
@@ -58248,9 +58248,6 @@ uniform ${i3} ${o3} u_${a3};
|
|
|
58248
58248
|
const bbox = [...extent];
|
|
58249
58249
|
if (this.isUpdateBboxOnMoveEnd && zoom) {
|
|
58250
58250
|
bbox.push(zoom);
|
|
58251
|
-
if (this.tenant) {
|
|
58252
|
-
bbox.push(`tenant=${this.tenant}`);
|
|
58253
|
-
}
|
|
58254
58251
|
this.generalizationLevel = this.getGeneralizationLevelByZoom(zoom);
|
|
58255
58252
|
if (this.generalizationLevel) {
|
|
58256
58253
|
bbox.push(`gen=${this.generalizationLevel}`);
|
|
@@ -58260,6 +58257,9 @@ uniform ${i3} ${o3} u_${a3};
|
|
|
58260
58257
|
bbox.push(`mots=${this.mots}`);
|
|
58261
58258
|
}
|
|
58262
58259
|
}
|
|
58260
|
+
if (this.tenant) {
|
|
58261
|
+
bbox.push(`tenant=${this.tenant}`);
|
|
58262
|
+
}
|
|
58263
58263
|
this.api.bbox = bbox;
|
|
58264
58264
|
}
|
|
58265
58265
|
/**
|
|
@@ -58382,7 +58382,7 @@ uniform ${i3} ${o3} u_${a3};
|
|
|
58382
58382
|
*/
|
|
58383
58383
|
purgeTrajectory(trajectory, extent, zoom) {
|
|
58384
58384
|
const { type, bounds } = trajectory.properties;
|
|
58385
|
-
if (!intersects(extent, bounds) || this.mots && !this.mots.includes(type)) {
|
|
58385
|
+
if (this.isUpdateBboxOnMoveEnd && !intersects(extent, bounds) || this.mots && !this.mots.includes(type)) {
|
|
58386
58386
|
this.removeTrajectory(trajectory);
|
|
58387
58387
|
return true;
|
|
58388
58388
|
}
|