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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Apr 17 06:48:59 PDT 2014


Author: jng
Date: 2014-04-17 06:48:59 -0700 (Thu, 17 Apr 2014)
New Revision: 8056

Modified:
   trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
Log:
#2249: Refine image request guard to also cover dpi and scale

Modified: trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2014-04-17 13:38:42 UTC (rev 8055)
+++ trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2014-04-17 13:48:59 UTC (rev 8056)
@@ -1826,10 +1826,10 @@
 
 function RequestMap(scale, centerX, centerY, showGroups, hideGroups, showLayers, hideLayers)
 {
-    if(mapDevW == 0 || mapDevH == 0)
+    if (scale <= 0 || mapDevW <= 0 || mapDevH <= 0 || DPI <= 0)
         return;
     OnMapLoading();
-
+    
     var viewParams = "&SETDISPLAYDPI=" + DPI + "&SETDISPLAYWIDTH=" + mapDevW + "&SETDISPLAYHEIGHT=" + mapDevH;
     viewParams += "&SETVIEWSCALE=" + scale + "&SETVIEWCENTERX=" + centerX + "&SETVIEWCENTERY=" + centerY;
     viewParams += "&CLIENTAGENT=" + encodeURIComponent(clientAgent);



More information about the mapguide-commits mailing list