[fusion-commits] r2189 - trunk/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Wed Jul 7 02:42:25 EDT 2010


Author: hubu
Date: 2010-07-07 06:42:25 +0000 (Wed, 07 Jul 2010)
New Revision: 2189

Modified:
   trunk/layers/MapGuide/MapGuideViewerApi.js
Log:
This is the subsequence submission of revision 1860.
In the revision 1860, the value of variable Fusion is changed from: 
var Fusion = window.top.Fusion;
to: 
var Fusion = MainFusionWindow.Fusion;

However, in 1850, there are still some places not updated. So this submission update all Fusion values.

Modified: trunk/layers/MapGuide/MapGuideViewerApi.js
===================================================================
--- trunk/layers/MapGuide/MapGuideViewerApi.js	2010-07-05 05:20:09 UTC (rev 2188)
+++ trunk/layers/MapGuide/MapGuideViewerApi.js	2010-07-07 06:42:25 UTC (rev 2189)
@@ -200,7 +200,7 @@
         mgApiActiveControl = null;
     }
   if (mgApiActiveWidget) {
-    var Fusion = window.top.Fusion;
+    //var Fusion = window.top.Fusion;
     var mapWidget = Fusion.getWidgetById(mgApiMapWidgetId);
     mapWidget.activateWidget(mgApiActiveWidget);
     mgApiActiveWidget = null;
@@ -219,7 +219,7 @@
         });
 var mgApiStyleMap = new OpenLayers.StyleMap(mgApiStyle);
     
-window.top.Fusion.registerForEvent(window.top.Fusion.Event.FUSION_INITIALIZED, mgApiInit);
+Fusion.registerForEvent(Fusion.Event.FUSION_INITIALIZED, mgApiInit);
 
 //set up of digitizing tools once everything is initialized
 function mgApiInit() {
@@ -227,7 +227,7 @@
         return;
     }
     mgApiInitialized = true;
-  var map = window.top.Fusion.getWidgetById(mgApiMapWidgetId).oMapOL;
+  var map = Fusion.getWidgetById(mgApiMapWidgetId).oMapOL;
   
   mgApiDigitizingLayer = new OpenLayers.Layer.Vector("Digitizing Layer", {styleMap: mgApiStyleMap});
   map.addLayers([mgApiDigitizingLayer]);



More information about the fusion-commits mailing list