[fusion-commits] r1846 - trunk/layers/MapServer
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri May 1 09:23:21 EDT 2009
Author: pagameba
Date: 2009-05-01 09:23:21 -0400 (Fri, 01 May 2009)
New Revision: 1846
Modified:
trunk/layers/MapServer/MapServer.js
Log:
adding style parameter to getLegendImageURL in mapserver.
Modified: trunk/layers/MapServer/MapServer.js
===================================================================
--- trunk/layers/MapServer/MapServer.js 2009-04-30 21:22:49 UTC (rev 1845)
+++ trunk/layers/MapServer/MapServer.js 2009-05-01 13:23:21 UTC (rev 1846)
@@ -783,11 +783,11 @@
}
},
- getLegendImageURL: function(fScale, layer) {
+ getLegendImageURL: function(fScale, layer, style) {
var sl = Fusion.getScriptLanguage();
var url = Fusion.getFusionURL() + '/layers/' + this.arch + '/' + sl + '/LegendIcon.' + sl;
var sessionid = this.getSessionID();
- var params = 'mapname='+this._sMapname+"&session="+sessionid + '&layername='+layer.resourceId + '&classindex='+this.index;
+ var params = 'mapname='+this._sMapname+"&session="+sessionid + '&layername='+layer.resourceId + '&classindex='+style.index;
return url + '?'+params;
},
More information about the fusion-commits
mailing list