[fusion-commits] r1981 - trunk/layers/MapGuide
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Nov 17 11:47:43 EST 2009
Author: chrisclaydon
Date: 2009-11-17 11:47:42 -0500 (Tue, 17 Nov 2009)
New Revision: 1981
Modified:
trunk/layers/MapGuide/MapGuide.js
Log:
Fixes #1145 - "Feature selection status is not consistent when do query in Fusion" Submitted on behalf of Buddy Hu
Modified: trunk/layers/MapGuide/MapGuide.js
===================================================================
--- trunk/layers/MapGuide/MapGuide.js 2009-11-17 16:21:30 UTC (rev 1980)
+++ trunk/layers/MapGuide/MapGuide.js 2009-11-17 16:47:42 UTC (rev 1981)
@@ -920,6 +920,13 @@
}
}
+ //Fix Ticket #1145.
+ //When the user invokes the setSelection() function to update the selection,
+ //clear the selection count for all layers before proceeding
+ for (var j=0; j<this.aLayers.length; ++j) {
+ this.aLayers[j].selectedFeatureCount = 0;
+ }
+
// set the feature count on each layer making up this map
for (var i=0; i<oNode.layers.length; ++i) {
var layerName = oNode.layers[i];
More information about the fusion-commits
mailing list