[fusion-commits] r1860 - trunk/layers/MapGuide
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed May 20 15:53:32 EDT 2009
Author: pagameba
Date: 2009-05-20 15:53:32 -0400 (Wed, 20 May 2009)
New Revision: 1860
Modified:
trunk/layers/MapGuide/MapGuideViewerApi.js
Log:
add GetFusionMapWidget
Modified: trunk/layers/MapGuide/MapGuideViewerApi.js
===================================================================
--- trunk/layers/MapGuide/MapGuideViewerApi.js 2009-05-20 19:30:03 UTC (rev 1859)
+++ trunk/layers/MapGuide/MapGuideViewerApi.js 2009-05-20 19:53:32 UTC (rev 1860)
@@ -39,7 +39,7 @@
var Object = MainFusionWindow.Object;
function Refresh() {
- var Fusion = window.top.Fusion;
+ //var Fusion = window.top.Fusion;
var mapWidget = Fusion.getWidgetById(mgApiMapWidgetId);
if (mapWidget && mapWidget.isMapLoaded()) {
mapWidget.redraw();
@@ -47,7 +47,7 @@
}
function SetSelectionXML(selectionXml) {
- var Fusion = window.top.Fusion;
+ //var Fusion = window.top.Fusion;
var mapWidget = Fusion.getWidgetById(mgApiMapWidgetId);
if (mapWidget && mapWidget.isMapLoaded()) {
mapWidget.setSelection(selectionXml, true);
@@ -55,7 +55,7 @@
}
function ZoomToView(x, y, scale, refresh) {
- var Fusion = window.top.Fusion;
+ //var Fusion = window.top.Fusion;
var mapWidget = Fusion.getWidgetById(mgApiMapWidgetId);
if (mapWidget && mapWidget.isMapLoaded()) {
var extent = mapWidget.getExtentFromPoint(x, y, scale);
@@ -144,7 +144,7 @@
function mgApiStartDigitizing(type, handler) {
mgApiInit();
if (handler) {
- var Fusion = window.top.Fusion;
+ //var Fusion = window.top.Fusion;
var mapWidget = Fusion.getWidgetById(mgApiMapWidgetId);
mgApiActiveWidget = mapWidget.oActiveWidget;
if (mgApiActiveWidget) {
@@ -324,3 +324,7 @@
}
return curWindow;
}
+
+function GetFusionMapWidget() {
+ return Fusion.getWidgetById(mgApiMapWidgetId);
+}
More information about the fusion-commits
mailing list