File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ class Feature {
216
216
this . crs = crs ;
217
217
this . normals = structure3d ? [ ] : undefined ;
218
218
this . size = structure3d ? 3 : 2 ;
219
- if ( options . buildExtent ) {
219
+ if ( options . extent ) {
220
220
// this.crs is final crs projection, is out projection.
221
221
// If the extent crs is the same then we use output coordinate (coordOut) to expand it.
222
222
this . extent = defaultExtent ( options . forcedExtentCrs || this . crs ) ;
@@ -279,9 +279,7 @@ export class FeatureCollection {
279
279
this . crs = CRS . formatToEPSG ( options . crs ) ;
280
280
this . features = [ ] ;
281
281
this . optionsFeature = options || { } ;
282
- if ( this . optionsFeature . buildExtent ) {
283
- this . extent = defaultExtent ( options . forcedExtentCrs || this . crs ) ;
284
- }
282
+ this . extent = options . buildExtent ? defaultExtent ( options . forcedExtentCrs || this . crs ) : undefined ;
285
283
this . translation = new THREE . Vector3 ( ) ;
286
284
this . scale = new THREE . Vector3 ( 1 , 1 , 1 ) ;
287
285
}
You can’t perform that action at this time.
0 commit comments