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;
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>
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;