Add getBounds to geometry

This commit is contained in:
Tim Schaub
2013-01-21 12:59:04 -07:00
parent 216d30ddc1
commit b4d44f815f
16 changed files with 418 additions and 16 deletions

View File

@@ -2,17 +2,18 @@ goog.provide('ol.geom.MultiPoint');
goog.require('goog.asserts');
goog.require('ol.geom.CoordinateArray');
goog.require('ol.geom.Geometry');
goog.require('ol.geom.GeometryCollection');
goog.require('ol.geom.Point');
/**
* @constructor
* @implements {ol.geom.Geometry}
* @extends {ol.geom.GeometryCollection}
* @param {ol.geom.CoordinateArray} coordinates Coordinates array.
*/
ol.geom.MultiPoint = function(coordinates) {
goog.base(this);
var numParts = coordinates.length,
dimension;
@@ -37,3 +38,4 @@ ol.geom.MultiPoint = function(coordinates) {
goog.asserts.assert(this.dimension >= 2);
};
goog.inherits(ol.geom.MultiPoint, ol.geom.GeometryCollection);