From f904f2ed15e49794a89528bfc029754ee0599bff Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 16 Aug 2006 00:33:25 +0000 Subject: [PATCH] add an informational comment and do a little coding standards cleanup. no functional change here git-svn-id: http://svn.openlayers.org/trunk/openlayers@1225 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WMS.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/OpenLayers/Layer/WMS.js b/lib/OpenLayers/Layer/WMS.js index cfd7f173c9..91852d61fa 100644 --- a/lib/OpenLayers/Layer/WMS.js +++ b/lib/OpenLayers/Layer/WMS.js @@ -47,8 +47,10 @@ OpenLayers.Layer.WMS.prototype = OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS) ); } - - this.isBaseLayer = (this.params.TRANSPARENT != "true" && this.params.TRANSPARENT != true); + + // if the layer is transparent, it will be an overlay + this.isBaseLayer = ((this.params.TRANSPARENT != "true") && + (this.params.TRANSPARENT != true)); }, /** @@ -124,7 +126,8 @@ OpenLayers.Layer.WMS.prototype = mergeNewParams:function(params) { var upperParams = OpenLayers.Util.upperCaseObject(params); var newArguments = [upperParams]; - OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(this, newArguments); + OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(this, + newArguments); if (this.map != null) { this._initTiles();