Skip to content

Commit

Permalink
refactor(Feature): normalize crs projection.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Apr 20, 2021
1 parent 420ba1a commit f9df7ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Feature.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as THREE from 'three';
import Extent from 'Core/Geographic/Extent';
import Coordinates from 'Core/Geographic/Coordinates';
import CRS from 'Core/Geographic/Crs';
import Style from 'Core/Style';

function defaultExtent(crs) {
Expand Down Expand Up @@ -275,8 +276,7 @@ export class FeatureCollection {
*/
constructor(crs, options) {
this.isFeatureCollection = true;
// TODO: Replace crs parameter by CRS.formatToEPSG(options.crs)
this.crs = crs;
this.crs = CRS.formatToEPSG(options.crs);
this.features = [];
this.optionsFeature = options || {};
if (this.optionsFeature.buildExtent) {
Expand Down

0 comments on commit f9df7ff

Please sign in to comment.