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

View File

@@ -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;
};