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

@@ -11,12 +11,14 @@ goog.require('ol.geom.LinearRing');
/**
* @constructor
* @implements {ol.geom.Geometry}
* @extends {ol.geom.Geometry}
* @param {Array.<ol.geom.CoordinateArray>} coordinates Array of rings. First
* is outer, any remaining are inner.
*/
ol.geom.Polygon = function(coordinates) {
goog.base(this);
var numRings = coordinates.length,
dimension;
@@ -46,6 +48,7 @@ ol.geom.Polygon = function(coordinates) {
this.bounds_ = null;
};
goog.inherits(ol.geom.Polygon, ol.geom.Geometry);
/**