[mapguide-commits] r4704 - trunk/MgDev/Web/src/viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Mar 26 04:51:11 EDT 2010


Author: liuar
Date: 2010-03-26 04:51:06 -0400 (Fri, 26 Mar 2010)
New Revision: 4704

Modified:
   trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
Log:
Fixed Ticket #1300 Chrome basic web layout and base layer, zooming in/out will make features disappear

Modified: trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2010-03-26 06:20:28 UTC (rev 4703)
+++ trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2010-03-26 08:51:06 UTC (rev 4704)
@@ -3417,6 +3417,14 @@
             return 0;
         cell.loaded = "1";
         url = webAgent + "?OPERATION=GETTILEIMAGE&VERSION=1.2.0&SESSION=" + sessionId + "&MAPDEFINITION=" + encodeComponent(mapDefinitionName) + "&BASEMAPLAYERGROUPNAME=" + encodeComponent(baseGroups[k]) + "&TILECOL=" + tilex + "&TILEROW=" + tiley + "&SCALEINDEX=" + sci + "&CLIENTAGENT=" + encodeComponent(clientAgent);
+        
+        // Defect in the way Chrome 4.0 caches images.
+        if(chrome)
+        {
+            var timestamp = new Date().getTime();
+            url += ('&TS=' + timestamp);
+        }
+        
         tag = '<img id="' + (imgId) + '" width=' + TILECX + ' height=' + TILECY + ' border=0 vspace=0 hspace=0 src="' + url + '" style="visibility: hidden; width: ' + TILECX + 'px; height: ' + TILECY + 'px;" onload="OnTileLoaded(\'' + imgId + '\')">';
         imgId ++;
         cell.innerHTML = tag;



More information about the mapguide-commits mailing list