The wms-gs-1_0_1.js library doesn't take SLD parameter into account
-------------------------------------------------------------------
Key: GEOS-1118
URL: http://jira.codehaus.org/browse/GEOS-1118
Project: GeoServer
Issue Type: Improvement
Reporter: Luca Morandini
Assignee: Andrea Aime
Priority: Trivial
Fix For: 1.5.2
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;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira