From 1baadf57ac1e40946b46f967a015d4883c5803a5 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 16 Aug 2006 01:04:07 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Layer/WMS/Untiled.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/OpenLayers/Layer/WMS/Untiled.js b/lib/OpenLayers/Layer/WMS/Untiled.js index 0d56800406..732608a199 100644 --- a/lib/OpenLayers/Layer/WMS/Untiled.js +++ b/lib/OpenLayers/Layer/WMS/Untiled.js @@ -22,10 +22,8 @@ OpenLayers.Layer.WMS.Untiled.prototype = }, - /** WMS.Untiled layer is never a base layer. - * @type Boolean - */ - isBaseLayer: false, + /** @type Boolean */ + isBaseLayer: null, /** @type DOMElement */ imgDiv: null, @@ -54,6 +52,11 @@ OpenLayers.Layer.WMS.Untiled.prototype = 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)); + }, /**