[fusion-commits] r2367 - trunk/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Apr 14 15:33:57 EDT 2011
Author: madair
Date: 2011-04-14 12:33:57 -0700 (Thu, 14 Apr 2011)
New Revision: 2367
Modified:
trunk/lib/ApplicationDefinition.js
Log:
mapWidget.getMapName has been moved to the Layers objects; change AppDef.getMapByName(0 to return a Layer object
Modified: trunk/lib/ApplicationDefinition.js
===================================================================
--- trunk/lib/ApplicationDefinition.js 2011-04-14 19:25:09 UTC (rev 2366)
+++ trunk/lib/ApplicationDefinition.js 2011-04-14 19:33:57 UTC (rev 2367)
@@ -718,12 +718,16 @@
*/
getMapByName : function(name) {
var map = null;
- if (this.mapWidget.getMapName() == name) {
- map = this.mapWidget;
+ for (var i=0; i<this.mapWidget.aMaps.length; ++i) {
+ var mapLayer = this.mapWidget.aMaps[i];
+ if (mapLayer.getMapName() == name) {
+ map = mapLayer;
+ }
}
return map;
},
+
/**
* Function getWidgetsByType
*
More information about the fusion-commits
mailing list