Using CONSTANT_CASE for geometry type

This commit is contained in:
Tim Schaub
2013-12-05 14:00:04 -07:00
parent fac8936688
commit 4ee9605d61
24 changed files with 101 additions and 101 deletions
+6 -6
View File
@@ -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'
};
+1 -1
View File
@@ -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;
};
+1 -1
View File
@@ -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;
};
+1 -1
View File
@@ -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;
};
+1 -1
View File
@@ -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;
};
+1 -1
View File
@@ -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;
};
+1 -1
View File
@@ -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;
};