Rename ol.geom.Type to ol.geom.GeometryType
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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)>}
|
||||
*/
|
||||
|
||||
@@ -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)>}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user