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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Aug 1 23:36:24 PDT 2013


Author: hubu
Date: 2013-08-01 23:36:23 -0700 (Thu, 01 Aug 2013)
New Revision: 7712

Modified:
   trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
Log:
Submit on behalf of Andy Zhang.
Fix ticket #2331: http://trac.osgeo.org/mapguide/ticket/2331 : Select polygon hangs when digitizing an invalid polygon.

This error happens on some data sources such as PostGis? 2.0. If only digitize 2 vertice when select polygon, all the following operations don't have response any more. We have to restart to Server to make it work again. 
To fix the issue, we need to check the vertex count before sending the query.


Modified: trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2013-08-01 16:21:30 UTC (rev 7711)
+++ trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2013-08-02 06:36:23 UTC (rev 7712)
@@ -3012,6 +3012,9 @@
 
 function RequestPolygonSelection(xs, ys, append)
 {
+    if (xs.length <= 3)
+        return;
+
     var wkt = "POLYGON((";
     for(var i=0; i < xs.length; i++)
     {



More information about the mapguide-commits mailing list