From f44c29e4bf04afe27deffd42f0cea438e67be343 Mon Sep 17 00:00:00 2001 From: gchoqueux Date: Fri, 30 Apr 2021 12:41:12 +0200 Subject: [PATCH] refactor(Feature): declare constant in file begining. --- src/Core/Feature.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Core/Feature.js b/src/Core/Feature.js index 6cb9c50928..ee48821cf1 100644 --- a/src/Core/Feature.js +++ b/src/Core/Feature.js @@ -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 @@ -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.