[mapguide-commits] r7484 - sandbox/jng/queryfeatures_v2/Web/src/viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed May 8 05:16:35 PDT 2013


Author: jng
Date: 2013-05-08 05:16:35 -0700 (Wed, 08 May 2013)
New Revision: 7484

Modified:
   sandbox/jng/queryfeatures_v2/Web/src/viewerfiles/ajaxmappane.templ
Log:
Remove the call to the now non-existent getselectedfeatures.[php/jsp/aspx]

QUERYMAPFEATURES 2.6.0 takes care of all that now.

Modified: sandbox/jng/queryfeatures_v2/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- sandbox/jng/queryfeatures_v2/Web/src/viewerfiles/ajaxmappane.templ	2013-05-08 12:11:14 UTC (rev 7483)
+++ sandbox/jng/queryfeatures_v2/Web/src/viewerfiles/ajaxmappane.templ	2013-05-08 12:16:35 UTC (rev 7484)
@@ -340,7 +340,6 @@
 var locale = '%s';
 var openHlinkText = macOS ? "__#OPENHYPERLINKMAC#__" : "__#OPENHYPERLINK#__";
 var lastLegendScaleUpdate = curScale;
-var featureRequestUrl = '%s';
 %s
 var isAlertShow = false;
 var selectionColor = '0x%s';
@@ -3171,12 +3170,8 @@
             {
                 //Check if we have attributes inline
                 var props = xmlIn.getElementsByTagName("SelectedLayer");
-                if (props.length > 0) {
-                    var resp = ConvertToSelectedFeatureSet(props);
-                    ProcessSelectedFeatureSet(resp);
-                } else {
-                    RequestSelectedFeatureProperties();
-                }
+                var resp = ConvertToSelectedFeatureSet(props);
+                ProcessSelectedFeatureSet(resp);
             }
             else
             {
@@ -4194,30 +4189,6 @@
     return featuresByLayer;
 }
 
-function RequestSelectedFeatureProperties()
-{
-    var mapname = GetMapName();
-    var session = GetSessionId();
-    var selRequest = CreateRequestHandler();
-    var reqParams = "MAPNAME="+mapname+"&SESSION="+session+"&LOCALE="+locale+"&SEQ="+Math.random();
-    selRequest.open("POST", featureRequestUrl, false);
-    selRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
-    selRequest.send(reqParams);
- 
-    var respText = selRequest.responseText;
-    if (respText && respText.length > 0)
-    {
-        var resp = eval('(' + respText + ')');
-        //If an error occurred server-side, it is written as the error property of the JSON response
-        if (resp.Error)
-            RequestFailed(resp.Error.Message + "\n\n__#ERRORSTACKTRACE#__:\n\n" + resp.Error.StackTrace);
-        else
-            ProcessSelectedFeatureSet(resp);
-    }
-    else
-        RequestFailed("__#NOFEATSELECTRESPONSE#__");
-}
-
 function ProcessSelectedFeatureSet(resp)
 {
     selFeatures = {};



More information about the mapguide-commits mailing list