[fusion-commits] r1226 - in trunk: MapGuide lib widgets

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Mar 10 11:45:49 EDT 2008


Author: pagameba
Date: 2008-03-10 11:45:49 -0400 (Mon, 10 Mar 2008)
New Revision: 1226

Modified:
   trunk/MapGuide/MapGuide.js
   trunk/lib/ApplicationDefinition.js
   trunk/widgets/Legend.js
Log:
Re #20.  Link now works.

Modified: trunk/MapGuide/MapGuide.js
===================================================================
--- trunk/MapGuide/MapGuide.js	2008-03-10 13:30:23 UTC (rev 1225)
+++ trunk/MapGuide/MapGuide.js	2008-03-10 15:45:49 UTC (rev 1226)
@@ -67,7 +67,7 @@
         if (isMapWidgetLayer != null) {
             this.bIsMapWidgetLayer = isMapWidgetLayer;
         }
-        
+        this.mapInfo = mapTag.mapInfo;
         var extension = mapTag.extension; //TBD: this belongs in layer tag?
         this.selectionType = extension.SelectionType ? extension.SelectionType[0] : 'INTERSECTS';
         this.ratio = extension.MapRatio ? extension.MapRatio[0] : 1.0;

Modified: trunk/lib/ApplicationDefinition.js
===================================================================
--- trunk/lib/ApplicationDefinition.js	2008-03-10 13:30:23 UTC (rev 1225)
+++ trunk/lib/ApplicationDefinition.js	2008-03-10 15:45:49 UTC (rev 1226)
@@ -420,8 +420,8 @@
                 var map = new Fusion.Lib.ApplicationDefinition.Map(jsonNode.Map[i]);
                 var links = {groups:[], layers:[]};
                 var layerEvents = {};
-                if (jsonNode.Extension) {
-                    var extension = jsonNode.Extension[0];
+                if (jsonNode.Map[i].Extension) {
+                    var extension = jsonNode.Map[i].Extension[0];
                     if (extension.Links) {
                         /* process Groups */
                         if (extension.Links[0].Group instanceof Array) {

Modified: trunk/widgets/Legend.js
===================================================================
--- trunk/widgets/Legend.js	2008-03-10 13:30:23 UTC (rev 1225)
+++ trunk/widgets/Legend.js	2008-03-10 15:45:49 UTC (rev 1226)
@@ -467,7 +467,7 @@
         if (bCheckBox) {
             item.domObj.insertBefore(layer.legend.checkBox, item.domObj.childNodes[1]);
             /* only need to add layer info if it has a check box too */
-            var layerInfo = this.getLayerInfoUrl(layer.layerName);
+            var layerInfo = layer.oMap.getLayerInfoUrl(layer.layerName);
             if (layerInfo) {
                 var a = document.createElement('a');
                 a.href = layerInfo;



More information about the fusion-commits mailing list