Bounds fixes.

This commit is contained in:
Tom Payne
2012-06-19 13:00:24 +02:00
parent 94e6146b8a
commit f435bb1874
2 changed files with 3 additions and 8 deletions
+1 -6
View File
@@ -44,12 +44,7 @@ ol.bounds = function(opt_arg){
throw new Error('ol.bounds'); throw new Error('ol.bounds');
} }
var bounds = new ol.Bounds(); var bounds = new ol.Bounds(minX, minY, maxX, maxY, projection);
bounds.setMinX(minX);
bounds.setMinY(minY);
bounds.setMaxX(maxX);
bounds.setMaxY(maxY);
bounds.setProjection(projection);
return bounds; return bounds;
}; };
+2 -2
View File
@@ -30,13 +30,13 @@ ol.Bounds = function(minX, minY, maxX, maxY, opt_projection) {
* @private * @private
* @type {number} * @type {number}
*/ */
this.minX_ = minX; this.maxX_ = maxX;
/** /**
* @private * @private
* @type {number} * @type {number}
*/ */
this.minY_ = minY; this.maxY_ = maxY;
/** /**
* @private * @private