Bounds fixes.
This commit is contained in:
+1
-6
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user