Skip to content

Commit

Permalink
refacto(feature): use feature crs property for instance center property.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Oct 7, 2022
1 parent 91fd9ec commit e455bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export class FeatureCollection extends THREE.Object3D {
this.extent = options.buildExtent === false ? undefined : defaultExtent(options.forcedExtentCrs || this.crs);
this.#setLocalSystem = (center) => {
// set local system center
center.as('EPSG:4326', this.center);
center.as(this.crs, this.center);

// set position to local system center
this.position.copy(center);
Expand Down

0 comments on commit e455bdb

Please sign in to comment.