Types for rings and mixed collections
This commit is contained in:
@@ -3,6 +3,7 @@ goog.provide('ol.geom.GeometryCollection');
|
||||
goog.require('goog.asserts');
|
||||
goog.require('ol.Extent');
|
||||
goog.require('ol.geom.Geometry');
|
||||
goog.require('ol.geom.GeometryType');
|
||||
|
||||
|
||||
|
||||
@@ -57,3 +58,11 @@ ol.geom.GeometryCollection.prototype.getBounds = function() {
|
||||
}
|
||||
return this.bounds;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.geom.GeometryCollection.prototype.getType = function() {
|
||||
return ol.geom.GeometryType.GEOMETRYCOLLECTION;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user