Rename ol.geom.Type to ol.geom.GeometryType

This commit is contained in:
Tom Payne
2013-12-04 16:28:36 +01:00
parent c2228b1d19
commit 057cda42be
10 changed files with 11 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ goog.require('ol.geom.flat');
/**
* @enum {string}
*/
ol.geom.Type = {
ol.geom.GeometryType = {
POINT: 'Point',
LINE_STRING: 'LineString',
LINEAR_RING: 'LinearRing',
@@ -196,7 +196,7 @@ ol.geom.Geometry.prototype.getStride = function() {
/**
* @return {ol.geom.Type} Geometry type.
* @return {ol.geom.GeometryType} Geometry type.
*/
ol.geom.Geometry.prototype.getType = goog.abstractMethod;

View File

@@ -40,7 +40,7 @@ ol.geom.LinearRing.prototype.getCoordinates = function() {
* @inheritDoc
*/
ol.geom.LinearRing.prototype.getType = function() {
return ol.geom.Type.LINEAR_RING;
return ol.geom.GeometryType.LINEAR_RING;
};

View File

@@ -40,7 +40,7 @@ ol.geom.LineString.prototype.getLength = function() {
* @inheritDoc
*/
ol.geom.LineString.prototype.getType = function() {
return ol.geom.Type.LINE_STRING;
return ol.geom.GeometryType.LINE_STRING;
};

View File

@@ -64,7 +64,7 @@ ol.geom.MultiLineString.prototype.getLineStrings = function() {
* @inheritDoc
*/
ol.geom.MultiLineString.prototype.getType = function() {
return ol.geom.Type.MULTI_LINE_STRING;
return ol.geom.GeometryType.MULTI_LINE_STRING;
};

View File

@@ -47,7 +47,7 @@ ol.geom.MultiPoint.prototype.getPoints = function() {
* @inheritDoc
*/
ol.geom.MultiPoint.prototype.getType = function() {
return ol.geom.Type.MULTI_POINT;
return ol.geom.GeometryType.MULTI_POINT;
};

View File

@@ -109,7 +109,7 @@ ol.geom.MultiPolygon.prototype.getPolygons = function() {
* @inheritDoc
*/
ol.geom.MultiPolygon.prototype.getType = function() {
return ol.geom.Type.MULTI_POLYGON;
return ol.geom.GeometryType.MULTI_POLYGON;
};

View File

@@ -46,7 +46,7 @@ ol.geom.Point.prototype.getExtent = function(opt_extent) {
* @inheritDoc
*/
ol.geom.Point.prototype.getType = function() {
return ol.geom.Type.POINT;
return ol.geom.GeometryType.POINT;
};

View File

@@ -108,7 +108,7 @@ ol.geom.Polygon.prototype.getLinearRings = function() {
* @inheritDoc
*/
ol.geom.Polygon.prototype.getType = function() {
return ol.geom.Type.POLYGON;
return ol.geom.GeometryType.POLYGON;
};

View File

@@ -467,7 +467,7 @@ ol.render.canvas.Immediate.prototype.setTextStyle = function(textStyle) {
/**
* @const
* @private
* @type {Object.<ol.geom.Type,
* @type {Object.<ol.geom.GeometryType,
* function(this: ol.render.canvas.Immediate, ol.geom.Geometry,
* Object)>}
*/

View File

@@ -155,7 +155,7 @@ ol.renderer.vector.renderPolygonGeometry_ =
/**
* @const
* @private
* @type {Object.<ol.geom.Type,
* @type {Object.<ol.geom.GeometryType,
* function(ol.render.IReplayGroup, ol.geom.Geometry,
* ol.style.Style, Object)>}
*/