[fusion-commits] r1940 - trunk/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Oct 13 16:42:31 EDT 2009


Author: madair
Date: 2009-10-13 16:42:29 -0400 (Tue, 13 Oct 2009)
New Revision: 1940

Modified:
   trunk/layers/MapGuide/MapGuide.js
Log:
re #141: prevent caching of legend image URLs; also fix error with layerTypes[] if statement

Modified: trunk/layers/MapGuide/MapGuide.js
===================================================================
--- trunk/layers/MapGuide/MapGuide.js	2009-10-13 20:03:39 UTC (rev 1939)
+++ trunk/layers/MapGuide/MapGuide.js	2009-10-13 20:42:29 UTC (rev 1940)
@@ -1165,7 +1165,7 @@
     },
     
     getLegendImageURL: function(fScale, layer, style,defaultIcon) {
-        if(this.layerTypes[0] == 4){
+        if(layer.layerTypes[0] == 4){
             return defaultIcon;
         }
         else
@@ -1177,7 +1177,7 @@
             url += "&THEMECATEGORY=" + style.categoryIndex;
             url += "&TYPE=" + style.geometryType;
             url += "&CLIENTAGENT=" + encodeURIComponent(this.clientAgent);
-            if (layer.noCache) {
+            if (this.noCache) {
                 url += "&TS=" + (new Date()).getTime();
             }
             return url;



More information about the fusion-commits mailing list