Skip to content

Commit

Permalink
Set this.angle and this.pitch in redoPlacement
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed Dec 5, 2016
1 parent 1158a57 commit 8e86224
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/source/worker_tile.js
Expand Up @@ -142,6 +142,7 @@ class WorkerTile {

for (const bucket of this.symbolBuckets) {
recalculateLayers(bucket, this.zoom);

bucket.prepare(stacks, icons);
bucket.place(collisionTile, this.showCollisionBoxes);
}
Expand Down Expand Up @@ -170,16 +171,18 @@ class WorkerTile {
}

redoPlacement(angle, pitch, showCollisionBoxes) {
this.angle = angle;
this.pitch = pitch;

if (this.status !== 'done') {
this.angle = angle;
this.pitch = pitch;
return {};
}

const collisionTile = new CollisionTile(this.angle, this.pitch, this.collisionBoxArray);

for (const bucket of this.symbolBuckets) {
recalculateLayers(bucket, this.zoom);

bucket.place(collisionTile, showCollisionBoxes);
}

Expand Down

0 comments on commit 8e86224

Please sign in to comment.