Allow instanceof checks for geometries

This commit is contained in:
Tim Schaub
2013-02-19 23:21:05 -07:00
parent 083404bd58
commit 0015e466dc
11 changed files with 30 additions and 6 deletions

View File

@@ -10,10 +10,12 @@ goog.require('ol.geom.GeometryType');
* A collection of geometries. This constructor should not called. Instead
* create one of the fixed type collections.
* @constructor
* @implements {ol.geom.Geometry}
* @extends {ol.geom.Geometry}
*/
ol.geom.GeometryCollection = function() {
goog.base(this);
/**
* @type {Array.<ol.geom.Geometry>}
*/
@@ -31,6 +33,7 @@ ol.geom.GeometryCollection = function() {
this.bounds = null;
};
goog.inherits(ol.geom.GeometryCollection, ol.geom.Geometry);
/**