[fusion-commits] r2135 - sandbox/adsk/2.2gp/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Apr 6 22:49:55 EDT 2010


Author: liuar
Date: 2010-04-06 22:49:54 -0400 (Tue, 06 Apr 2010)
New Revision: 2135

Modified:
   sandbox/adsk/2.2gp/layers/MapGuide/MapGuide.js
Log:
Port the fix of Ticket #390 to asdk branch

Modified: sandbox/adsk/2.2gp/layers/MapGuide/MapGuide.js
===================================================================
--- sandbox/adsk/2.2gp/layers/MapGuide/MapGuide.js	2010-04-07 02:48:31 UTC (rev 2134)
+++ sandbox/adsk/2.2gp/layers/MapGuide/MapGuide.js	2010-04-07 02:49:54 UTC (rev 2135)
@@ -1223,7 +1223,8 @@
             var url = Fusion.getConfigurationItem('mapguide', 'mapAgentUrl');
             url += "?OPERATION=GETLEGENDIMAGE&SESSION=" + layer.oMap.getSessionID();
             url += "&VERSION=1.0.0&SCALE=" + fScale;
-            url += "&LAYERDEFINITION=" + encodeURIComponent(layer.resourceId);
+            op = /\(/g; cp = /\)/g; 
+            url += "&LAYERDEFINITION=" + encodeURIComponent(layer.resourceId).replace(op, "%28").replace(cp, "%29");
             url += "&THEMECATEGORY=" + style.categoryIndex;
             url += "&TYPE=" + style.geometryType;
             url += "&CLIENTAGENT=" + encodeURIComponent(this.clientAgent);



More information about the fusion-commits mailing list