Geometry type enumeration

This commit is contained in:
Tim Schaub
2013-01-21 17:46:41 -07:00
parent 0fad23970c
commit 6ef2184c83
7 changed files with 74 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ goog.require('goog.vec.Float64Array');
goog.require('ol.Extent');
goog.require('ol.geom.CoordinateArray');
goog.require('ol.geom.Geometry');
goog.require('ol.geom.GeometryType');
goog.require('ol.geom.LinearRing');
@@ -54,3 +55,11 @@ ol.geom.Polygon = function(coordinates) {
ol.geom.Polygon.prototype.getBounds = function() {
return this.rings[0].getBounds();
};
/**
* @inheritDoc
*/
ol.geom.Polygon.prototype.getType = function() {
return ol.geom.GeometryType.POLYGON;
};