only set baselayer status based on transparency if *not* set in options. fix for #237 -- thanks tschaub

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1414 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-09-07 18:32:07 +00:00
parent 9b355b76dc
commit e906982443
2 changed files with 12 additions and 7 deletions

View File

@@ -50,10 +50,12 @@ OpenLayers.Layer.WMS.Untiled.prototype =
);
}
// if the layer is transparent, it will be an overlay
this.isBaseLayer = ((this.params.TRANSPARENT != "true") &&
(this.params.TRANSPARENT != true));
// unless explicitly set in options, if the layer is transparent,
// it will be an overlay
if ((options == null) ||(options.isBaseLayer == null)) {
this.isBaseLayer = ((this.params.TRANSPARENT != "true") &&
(this.params.TRANSPARENT != true));
}
},
/**