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:
@@ -45,9 +45,12 @@ OpenLayers.Layer.WMS.prototype =
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the layer is transparent, it will be an overlay
|
// 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.isBaseLayer = ((this.params.TRANSPARENT != "true") &&
|
||||||
(this.params.TRANSPARENT != true));
|
(this.params.TRANSPARENT != true));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -50,10 +50,12 @@ OpenLayers.Layer.WMS.Untiled.prototype =
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the layer is transparent, it will be an overlay
|
// 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.isBaseLayer = ((this.params.TRANSPARENT != "true") &&
|
||||||
(this.params.TRANSPARENT != true));
|
(this.params.TRANSPARENT != true));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user