Bounds fixes.
This commit is contained in:
@@ -44,12 +44,7 @@ ol.bounds = function(opt_arg){
|
||||
throw new Error('ol.bounds');
|
||||
}
|
||||
|
||||
var bounds = new ol.Bounds();
|
||||
bounds.setMinX(minX);
|
||||
bounds.setMinY(minY);
|
||||
bounds.setMaxX(maxX);
|
||||
bounds.setMaxY(maxY);
|
||||
bounds.setProjection(projection);
|
||||
var bounds = new ol.Bounds(minX, minY, maxX, maxY, projection);
|
||||
return bounds;
|
||||
|
||||
};
|
||||
|
||||
@@ -30,13 +30,13 @@ ol.Bounds = function(minX, minY, maxX, maxY, opt_projection) {
|
||||
* @private
|
||||
* @type {number}
|
||||
*/
|
||||
this.minX_ = minX;
|
||||
this.maxX_ = maxX;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {number}
|
||||
*/
|
||||
this.minY_ = minY;
|
||||
this.maxY_ = maxY;
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
Reference in New Issue
Block a user