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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Nov 17 00:47:09 EST 2011


Author: liuar
Date: 2011-11-16 21:47:09 -0800 (Wed, 16 Nov 2011)
New Revision: 6230

Modified:
   trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
Log:
on behalf of libr(Bruce li)

Reason:
The minimize action trigger the function OnResizeChange which will send a map request with invalid parameter.
solution:
Check the parameter before sending map request, it a workaround. 


Modified: trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2011-11-16 14:34:35 UTC (rev 6229)
+++ trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2011-11-17 05:47:09 UTC (rev 6230)
@@ -1792,6 +1792,8 @@
 
 function RequestMap(scale, centerX, centerY, showGroups, hideGroups, showLayers, hideLayers)
 {
+    if(mapDevW == 0 || mapDevH == 0)
+        return;
     OnMapLoading();
 
     var viewParams = "&SETDISPLAYDPI=" + DPI + "&SETDISPLAYWIDTH=" + mapDevW + "&SETDISPLAYHEIGHT=" + mapDevH;



More information about the mapguide-commits mailing list