Test for null. Testing for existence means that when we pass toBBOX(0), we

want to round to whole numbers, not to 6 decimal places. (Thanks tschaub.) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1561 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-10-04 16:02:45 +00:00
parent dc7c266f1f
commit 86d573dd83

View File

@@ -366,7 +366,7 @@ OpenLayers.Bounds.prototype = {
*/
toBBOX:function(power) {
var mult;
if (power) {
if (power != null) {
mult = Math.pow(10,power);
} else {
mult = Math.pow(10,6);