[mapguide-commits] r6200 - trunk/MgDev/Web/src/viewerfiles
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon Nov 7 06:01:06 EST 2011
Author: jng
Date: 2011-11-07 03:01:06 -0800 (Mon, 07 Nov 2011)
New Revision: 6200
Modified:
trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
Log:
Viewer performance improvement: Prevent QUERYMAPFEATURES requests from being made if panning or dragging (ie: moveType != NONE)
Modified: trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ 2011-11-04 10:04:57 UTC (rev 6199)
+++ trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ 2011-11-07 11:01:06 UTC (rev 6200)
@@ -2980,6 +2980,7 @@
function QueryFeatureInfo(geom, append, maxfeatures, which)
{
if(GetVisSelLayers() == "") return;
+ if(moveType != NONE) return;
var reqParams = "OPERATION=QUERYMAPFEATURES&VERSION=1.0.0&PERSIST=1&MAPNAME=" + encodeURIComponent(mapName) + "&SESSION=" + sessionId + "&SEQ=" + Math.random();
reqParams += "&LAYERNAMES=" + encodeURIComponent(GetVisSelLayers()) + "&GEOMETRY=" + geom + "&SELECTIONVARIANT=INTERSECTS" + "&CLIENTAGENT=" + encodeURIComponent(clientAgent);
if(maxfeatures != 0)
@@ -3716,6 +3717,7 @@
if(IsMouseInsideHyperlink()) return;
if(lastMapRcv != mapId) return;
if(isPopupOpen(tbMenu) || isPopupOpen(ctxMenu)) return;
+ if(moveType != NONE) return;
req = CreateRequestHandler();
req.open("POST", webAgent, true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
More information about the mapguide-commits
mailing list