make the same change as in r1209 to wms-untiled. make baselayeredness based on transparency (as it was before)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1226 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-08-16 01:04:07 +00:00
parent f904f2ed15
commit 1baadf57ac

View File

@@ -22,10 +22,8 @@ OpenLayers.Layer.WMS.Untiled.prototype =
}, },
/** WMS.Untiled layer is never a base layer. /** @type Boolean */
* @type Boolean isBaseLayer: null,
*/
isBaseLayer: false,
/** @type DOMElement */ /** @type DOMElement */
imgDiv: null, imgDiv: null,
@@ -54,6 +52,11 @@ OpenLayers.Layer.WMS.Untiled.prototype =
OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS)
); );
} }
// if the layer is transparent, it will be an overlay
this.isBaseLayer = ((this.params.TRANSPARENT != "true") &&
(this.params.TRANSPARENT != true));
}, },
/** /**