diff --git a/src/ol/geom/geometry.js b/src/ol/geom/geometry.js index 8352a839cd..437144c031 100644 --- a/src/ol/geom/geometry.js +++ b/src/ol/geom/geometry.js @@ -1,34 +1,14 @@ goog.provide('ol.geom.Geometry'); goog.provide('ol.geom.GeometryLayout'); -goog.provide('ol.geom.GeometryType'); goog.require('ol'); -goog.require('ol.functions'); goog.require('ol.Object'); goog.require('ol.extent'); +goog.require('ol.functions'); goog.require('ol.proj'); goog.require('ol.proj.Units'); -/** - * The geometry type. One of `'Point'`, `'LineString'`, `'LinearRing'`, - * `'Polygon'`, `'MultiPoint'`, `'MultiLineString'`, `'MultiPolygon'`, - * `'GeometryCollection'`, `'Circle'`. - * @enum {string} - */ -ol.geom.GeometryType = { - POINT: 'Point', - LINE_STRING: 'LineString', - LINEAR_RING: 'LinearRing', - POLYGON: 'Polygon', - MULTI_POINT: 'MultiPoint', - MULTI_LINE_STRING: 'MultiLineString', - MULTI_POLYGON: 'MultiPolygon', - GEOMETRY_COLLECTION: 'GeometryCollection', - CIRCLE: 'Circle' -}; - - /** * The coordinate layout for geometries, indicating whether a 3rd or 4th z ('Z') * or measure ('M') coordinate is available. Supported values are `'XY'`, diff --git a/src/ol/geom/geometrytype.js b/src/ol/geom/geometrytype.js new file mode 100644 index 0000000000..9b1fde2c0d --- /dev/null +++ b/src/ol/geom/geometrytype.js @@ -0,0 +1,20 @@ +goog.provide('ol.geom.GeometryType'); + + +/** + * The geometry type. One of `'Point'`, `'LineString'`, `'LinearRing'`, + * `'Polygon'`, `'MultiPoint'`, `'MultiLineString'`, `'MultiPolygon'`, + * `'GeometryCollection'`, `'Circle'`. + * @enum {string} + */ +ol.geom.GeometryType = { + POINT: 'Point', + LINE_STRING: 'LineString', + LINEAR_RING: 'LinearRing', + POLYGON: 'Polygon', + MULTI_POINT: 'MultiPoint', + MULTI_LINE_STRING: 'MultiLineString', + MULTI_POLYGON: 'MultiPolygon', + GEOMETRY_COLLECTION: 'GeometryCollection', + CIRCLE: 'Circle' +};