Dedicated module for GeometryType enum

This commit is contained in:
Tim Schaub
2016-12-04 14:35:10 -07:00
parent c00906cde9
commit 7858b68fc0
2 changed files with 21 additions and 21 deletions

View File

@@ -1,34 +1,14 @@
goog.provide('ol.geom.Geometry'); goog.provide('ol.geom.Geometry');
goog.provide('ol.geom.GeometryLayout'); goog.provide('ol.geom.GeometryLayout');
goog.provide('ol.geom.GeometryType');
goog.require('ol'); goog.require('ol');
goog.require('ol.functions');
goog.require('ol.Object'); goog.require('ol.Object');
goog.require('ol.extent'); goog.require('ol.extent');
goog.require('ol.functions');
goog.require('ol.proj'); goog.require('ol.proj');
goog.require('ol.proj.Units'); 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') * The coordinate layout for geometries, indicating whether a 3rd or 4th z ('Z')
* or measure ('M') coordinate is available. Supported values are `'XY'`, * or measure ('M') coordinate is available. Supported values are `'XY'`,

View File

@@ -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'
};