The wms-gs-1_0_1.js library doesn't take SLD parameter into account

Description

A little change to this library would let users specify styles or sld parameters in their WMS calls.
The patch follows:

Index: C:/apps/jboss-4.0.5.GA/server/all/deploy/cocoon.war/zheng/balnea/app/presentation/scripts/wms-gs-1_0_1.js
===================================================================
— C:/apps/jboss-4.0.5.GA/server/all/deploy/cocoon.war/zheng/balnea/app/presentation/scripts/wms-gs-1_0_1.js (revision 1283)
+++ C:/apps/jboss-4.0.5.GA/server/all/deploy/cocoon.war/zheng/balnea/app/presentation/scripts/wms-gs-1_0_1.js (working copy)
@@ -106,7 +106,13 @@
lURL+="&VERSION=1.1.1";
lURL+="&LAYERS="+this.myLayers;
lURL+="&STYLES="+this.myStyles;
-lURL+="&FORMAT="+this.myFormat;
+ if ( this.myStyles != null )
{
lURL="&STYLES="+this.myStyles;
+ }

+ if ( this.mySLD != null )
{
lURL="&SLD="+this.mySLD;
+ }
lURL="&FORMAT="+this.myFormat;
lURL+="&BGCOLOR=0xFFFFFF";
lURL+="&TRANSPARENT=TRUE";
lURL+="&SRS="+lSRS;

Environment

None

Activity

codehaus 
April 10, 2015 at 3:52 PM

CodeHaus Comment From: aaime - Time: Thu, 14 Jun 2007 15:53:30 -0500
---------------------
<p>This one if fixed on trunk, I have to double check I backported it on 1.5.x</p>

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created May 31, 2007 at 8:50 AM
Updated October 31, 2015 at 4:51 PM
Resolved May 26, 2015 at 2:08 PM