Skip to content

Commit

Permalink
refactor(Feature): declare constant in file begining.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed May 3, 2021
1 parent 061eda0 commit f44c29e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Core/Feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ function _extendBuffer(feature, size) {
const coordOut = new Coordinates('EPSG:4326', 0, 0, 0);
const defaultNormal = new THREE.Vector3(0, 0, 1);

export const FEATURE_TYPES = {
POINT: 0,
LINE: 1,
POLYGON: 2,
};

/**
* @property {string} crs - The CRS to convert the input coordinates to.
* @property {Extent|boolean} [filteringExtent=undefined] - Optional filter to reject
Expand Down Expand Up @@ -168,12 +174,6 @@ function push3DValues(value0, value1, value2 = 0) {
this.vertices[this._pos++] = value2;
}

export const FEATURE_TYPES = {
POINT: 0,
LINE: 1,
POLYGON: 2,
};

/**
*
* This class improves and simplifies the construction and conversion of geographic data structures.
Expand Down

0 comments on commit f44c29e

Please sign in to comment.