[mapguide-commits] r5353 - trunk/MgDev/Web/src/viewerfiles
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Oct 28 07:48:11 EDT 2010
Author: jng
Date: 2010-10-28 04:48:11 -0700 (Thu, 28 Oct 2010)
New Revision: 5353
Modified:
trunk/MgDev/Web/src/viewerfiles/mainframe.templ
Log:
Here we go again! Fix #1510 without trashing the new QuickPlot code
Modified: trunk/MgDev/Web/src/viewerfiles/mainframe.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/mainframe.templ 2010-10-28 11:41:53 UTC (rev 5352)
+++ trunk/MgDev/Web/src/viewerfiles/mainframe.templ 2010-10-28 11:48:11 UTC (rev 5353)
@@ -258,7 +258,7 @@
}
function GettingStartedURL ()
-{
+{
if(defHome)
return homePage + "?WEBLAYOUT=" + encodeURIComponent(webLayout) + "&SESSION=" + GetMapFrame().GetSessionId() + "&LOCALE=" + locale + "&DWF=" + dwf;
else
@@ -721,8 +721,24 @@
{
if(inMeasure)
EndMeasure();
- var center = GetMapFrame().GetCenter();
- OpenUrl("%s?SCALE=" + curScale + "&DPI=" + GetMapFrame().GetDPI() + "&CENTERX=" + center.X + "&CENTERY=" + center.Y, index);
+ var mapFrame = GetMapFrame();
+ var center = mapFrame.GetCenter();
+
+ var vpath = "%s";
+ mapFrame.LoadJxLib(function()
+ {
+ if (typeof mapFrame.MapCapturer == "undefined")
+ {
+ mapFrame.LoadJsFile("../viewerfiles/quickplot.js", function()
+ {
+ OpenUrl(vpath + "?TARGETTYPE=" + commands[index].targetType, index);
+ });
+ }
+ else
+ {
+ OpenUrl(vpath + "?TARGETTYPE=" + commands[index].targetType, index);
+ }
+ });
}
function ExecuteMeasureCommand(index)
More information about the mapguide-commits
mailing list