[mapguide-commits] r6791 - branches/2.4/MgDev/Web/src/viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Jun 19 03:26:28 PDT 2012


Author: jng
Date: 2012-06-19 03:26:27 -0700 (Tue, 19 Jun 2012)
New Revision: 6791

Modified:
   branches/2.4/MgDev/Web/src/viewerfiles/ajaxmappane.templ
Log:
#1043: Apply bruno's patch to fix visual artifacts in a tiled/untiled map caused by browser resizing.

Modified: branches/2.4/MgDev/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- branches/2.4/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2012-06-18 16:00:01 UTC (rev 6790)
+++ branches/2.4/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2012-06-19 10:26:27 UTC (rev 6791)
@@ -3596,7 +3596,7 @@
         for(var i=0; i < GRIDCY; i ++) {
             tileCode += '<tr height=' + TILECY + 'px>';
             for(var j=0; j < GRIDCX; j ++)
-                tileCode += '<td style="height: ' + TILECY + 'px;' + 'background-color: transparent;padding-top: 0px; padding-left: 0px; padding-bottom: 0px; padding-right: 0px;" id="' + k + ':' + j + ':' + i + '" width=' + TILECX + 'px loaded="0"><div style="width: ' + TILECX + 'px; height: ' + TILECY + 'px;"></td>';
+                tileCode += '<td style="height: ' + TILECY + 'px;' + 'background-color: transparent;padding-top: 0px; padding-left: 0px; padding-bottom: 0px; padding-right: 0px;" id="' + k + ':' + j + ':' + i + '" width=' + TILECX + 'px ><div style="width: ' + TILECX + 'px; height: ' + TILECY + 'px;"></td>';
             tileCode += '</tr>\n';
         }
         tileCode += '</tbody></table>\n';
@@ -3634,9 +3634,6 @@
             if((cell = FindCell(k, cellSpec)) == null)
                 return 0;
         }
-        if(cell.loaded == "1")
-            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.



More information about the mapguide-commits mailing list