Skip to content

Commit

Permalink
fix(Extent): fix wrong calculating when apply matrix.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Nov 3, 2021
1 parent 5ba4e9d commit 04abdd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Geographic/Extent.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,8 @@ class Extent {
*/
applyMatrix4(matrix) {
if (!CRS.isTms(this.crs)) {
southWest.set(this.west, this.south).applyMatrix4(matrix);
northEast.set(this.east, this.north).applyMatrix4(matrix);
southWest.set(this.west, this.south, 0).applyMatrix4(matrix);
northEast.set(this.east, this.north, 0).applyMatrix4(matrix);
this.west = southWest.x;
this.east = northEast.x;
this.south = southWest.y;
Expand Down

0 comments on commit 04abdd2

Please sign in to comment.