Dedicated module for GeometryType enum
This commit is contained in:
@@ -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'`,
|
||||||
|
|||||||
20
src/ol/geom/geometrytype.js
Normal file
20
src/ol/geom/geometrytype.js
Normal 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'
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user