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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user