Using CONSTANT_CASE for geometry type
This commit is contained in:
@@ -82,11 +82,11 @@ goog.inherits(ol.geom.GeometryEvent, goog.events.Event);
|
||||
*/
|
||||
ol.geom.GeometryType = {
|
||||
POINT: 'point',
|
||||
LINESTRING: 'linestring',
|
||||
LINEARRING: 'linearring',
|
||||
LINE_STRING: 'linestring',
|
||||
LINEAR_RING: 'linearring',
|
||||
POLYGON: 'polygon',
|
||||
MULTIPOINT: 'multipoint',
|
||||
MULTILINESTRING: 'multilinestring',
|
||||
MULTIPOLYGON: 'multipolygon',
|
||||
GEOMETRYCOLLECTION: 'geometrycollection'
|
||||
MULTI_POINT: 'multipoint',
|
||||
MULTI_LINE_STRING: 'multilinestring',
|
||||
MULTI_POLYGON: 'multipolygon',
|
||||
GEOMETRY_COLLECTION: 'geometrycollection'
|
||||
};
|
||||
|
||||
@@ -53,5 +53,5 @@ ol.geom.GeometryCollection.prototype.clone = function() {
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.geom.GeometryCollection.prototype.getType = function() {
|
||||
return ol.geom.GeometryType.GEOMETRYCOLLECTION;
|
||||
return ol.geom.GeometryType.GEOMETRY_COLLECTION;
|
||||
};
|
||||
|
||||
@@ -66,7 +66,7 @@ ol.geom.LinearRing.isClockwise = function(coordinates) {
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.geom.LinearRing.prototype.getType = function() {
|
||||
return ol.geom.GeometryType.LINEARRING;
|
||||
return ol.geom.GeometryType.LINEAR_RING;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ ol.geom.LineString.prototype.getBounds = function() {
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.geom.LineString.prototype.getType = function() {
|
||||
return ol.geom.GeometryType.LINESTRING;
|
||||
return ol.geom.GeometryType.LINE_STRING;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ goog.inherits(ol.geom.MultiLineString, ol.geom.AbstractCollection);
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.geom.MultiLineString.prototype.getType = function() {
|
||||
return ol.geom.GeometryType.MULTILINESTRING;
|
||||
return ol.geom.GeometryType.MULTI_LINE_STRING;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ goog.inherits(ol.geom.MultiPoint, ol.geom.AbstractCollection);
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.geom.MultiPoint.prototype.getType = function() {
|
||||
return ol.geom.GeometryType.MULTIPOINT;
|
||||
return ol.geom.GeometryType.MULTI_POINT;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ goog.inherits(ol.geom.MultiPolygon, ol.geom.AbstractCollection);
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.geom.MultiPolygon.prototype.getType = function() {
|
||||
return ol.geom.GeometryType.MULTIPOLYGON;
|
||||
return ol.geom.GeometryType.MULTI_POLYGON;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user