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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user