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
+4 -1
View File
@@ -10,11 +10,13 @@ goog.require('ol.geom.GeometryType');
/**
* @constructor
* @implements {ol.geom.Geometry}
* @extends {ol.geom.Geometry}
* @param {ol.geom.Coordinate} coordinates Coordinates array (e.g. [x, y]).
*/
ol.geom.Point = function(coordinates) {
goog.base(this);
/**
* @type {Float64Array}
*/
@@ -33,6 +35,7 @@ ol.geom.Point = function(coordinates) {
this.bounds_ = null;
};
goog.inherits(ol.geom.Point, ol.geom.Geometry);
/**