Skip to content

Commit

Permalink
fix(Feature): wrong condition to choose extent crs projection.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed May 21, 2021
1 parent 860d748 commit 73198c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Core/Feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class Feature {
// this.crs is final crs projection, is out projection.
// If the extent crs is the same then we use output coordinate (coordOut) to expand it.
this.extent = defaultExtent(collection.extent.crs);
this.useCrsOut = !collection.forceExtentCrs;
this.useCrsOut = this.extent.crs == this.crs;
}
this._pos = 0;
this._pushValues = (this.size === 3 ? push3DValues : push2DValues).bind(this);
Expand Down Expand Up @@ -300,8 +300,6 @@ export default Feature;

export class FeatureCollection extends THREE.Object3D {
/**
* Constructs a new instance.
*
* @param {FeatureBuildingOptions|Layer} options The building options .
*/
constructor(options) {
Expand Down

0 comments on commit 73198c7

Please sign in to comment.