Skip to content

Commit

Permalink
fix(FileSource): transform extent source if is needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed May 21, 2021
1 parent 041b62a commit 0177503
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Source/FileSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ class FileSource extends Source {
if (data.extent) {
this.extent = data.extent.clone();
// Transform local extent to data.crs projection.
this.extent.applyMatrix4(data.matrixWorld);
if (this.extent.crs == data.crs) {
this.extent.applyMatrix4(data.matrixWorld);
}
}

if (data.isFeatureCollection) {
Expand Down

0 comments on commit 0177503

Please sign in to comment.