[mapguide-commits] r4705 - sandbox/adsk/2.2gp/Web/src/viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Mar 26 05:04:43 EDT 2010


Author: liuar
Date: 2010-03-26 05:04:34 -0400 (Fri, 26 Mar 2010)
New Revision: 4705

Modified:
   sandbox/adsk/2.2gp/Web/src/viewerfiles/ajaxmappane.templ
Log:
Port this fix of ticket #1300 to 2.2gp branch
Fixed Ticket #1300 Chrome basic web layout and base layer, zooming in/out will make features disappear

Modified: sandbox/adsk/2.2gp/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- sandbox/adsk/2.2gp/Web/src/viewerfiles/ajaxmappane.templ	2010-03-26 08:51:06 UTC (rev 4704)
+++ sandbox/adsk/2.2gp/Web/src/viewerfiles/ajaxmappane.templ	2010-03-26 09:04:34 UTC (rev 4705)
@@ -3422,6 +3422,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