Skip to content

Commit

Permalink
fix: properly update display internals when updating bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
evansiroky committed May 21, 2020
1 parent 6da5f26 commit c6dd715
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/transitive.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export default class Transitive {
if (!this.display) return
const smWestSouth = sm.forward(llBounds[0])
const smEastNorth = sm.forward(llBounds[1])
this.display.reset()
this.display.setXDomain([smWestSouth[0], smEastNorth[0]])
this.display.setYDomain([smWestSouth[1], smEastNorth[1]])
this.display.computeScale()
Expand Down

0 comments on commit c6dd715

Please sign in to comment.