If isBaseLayer hasn't been set at all, it's undefined, not null.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1428 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-09-10 03:43:16 +00:00
parent 28bff61128
commit 720c8507f7

View File

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