diff --git a/lib/OpenLayers/Layer/WMS/Untiled.js b/lib/OpenLayers/Layer/WMS/Untiled.js index fcc4c2b858..1c3f0dd460 100644 --- a/lib/OpenLayers/Layer/WMS/Untiled.js +++ b/lib/OpenLayers/Layer/WMS/Untiled.js @@ -107,8 +107,6 @@ OpenLayers.Layer.WMS.Untiled.prototype = */ moveTo:function(bounds, zoomChanged, minor) { - - if (!minor) { if (bounds == null) { @@ -132,7 +130,7 @@ OpenLayers.Layer.WMS.Untiled.prototype = // update div var img = this.imgDiv; - if (this.transparent) { + if (this.params.TRANSPARENT == 'true') { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, pos, @@ -206,7 +204,7 @@ OpenLayers.Layer.WMS.Untiled.prototype = var pos = this.map.getLayerPxFromViewPortPx(tl); //create div - if (this.transparent) { + if (this.params.TRANSPARENT == 'true') { this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null, pos, size,