Skip to content

Commit e455bdb

Browse files
committed
refacto(feature): use feature crs property for instance center property.
1 parent 91fd9ec commit e455bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/Feature.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ export class FeatureCollection extends THREE.Object3D {
376376
this.extent = options.buildExtent === false ? undefined : defaultExtent(options.forcedExtentCrs || this.crs);
377377
this.#setLocalSystem = (center) => {
378378
// set local system center
379-
center.as('EPSG:4326', this.center);
379+
center.as(this.crs, this.center);
380380

381381
// set position to local system center
382382
this.position.copy(center);

0 commit comments

Comments
 (0)