[fusion-commits] r2387 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri May 27 15:51:40 EDT 2011
Author: madair
Date: 2011-05-27 12:51:40 -0700 (Fri, 27 May 2011)
New Revision: 2387
Modified:
trunk/widgets/SelectAttribute.js
Log:
re #453: use the correct map object to call setActiveLayer
Modified: trunk/widgets/SelectAttribute.js
===================================================================
--- trunk/widgets/SelectAttribute.js 2011-05-27 19:11:57 UTC (rev 2386)
+++ trunk/widgets/SelectAttribute.js 2011-05-27 19:51:40 UTC (rev 2387)
@@ -117,9 +117,10 @@
if (this.drawn) {
var layer = this.layerList[this.layerList.selectedIndex].value;
var map = this.getMapLayer();
+ var mapWidget = this.getMap();
for (var i=0; i<map.aLayers.length; ++i) {
if (map.aLayers[i].layerName == layer) {
- map.setActiveLayer(map.aLayers[i]);
+ mapWidget.setActiveLayer(map.aLayers[i]);
break;
}
}
More information about the fusion-commits
mailing list