Skip to content

Commit

Permalink
Add update call when showCollisionBoxes disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntaf authored and jfirebaugh committed Nov 14, 2017
1 parent 3a9a308 commit cb42e39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,9 @@ class Map extends Camera {
// When we turn collision boxes on we have to generate them for existing tiles
// When we turn them off, there's no cost to leaving existing boxes in place
this.style._generateCollisionBoxes();
} else {
// Otherwise, call an update to remove collision boxes
this._update();
}
}

Expand Down

0 comments on commit cb42e39

Please sign in to comment.