[mapguide-commits] r7189 - trunk/MgDev/Web/src/viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sun Nov 4 23:31:47 PST 2012


Author: jng
Date: 2012-11-04 23:31:47 -0800 (Sun, 04 Nov 2012)
New Revision: 7189

Modified:
   trunk/MgDev/Web/src/viewerfiles/mainframe.templ
Log:
#2156: Externalize decimal places setting, allowing for easy modification. 

Modified: trunk/MgDev/Web/src/viewerfiles/mainframe.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/mainframe.templ	2012-11-05 07:26:15 UTC (rev 7188)
+++ trunk/MgDev/Web/src/viewerfiles/mainframe.templ	2012-11-05 07:31:47 UTC (rev 7189)
@@ -37,6 +37,7 @@
 var dwf = %s;
 var mapUnitsType = "";
 var newWindowIndex = 1;
+var cursorPosDecimalPlaces = 6;
 
 var commands = new Array();
 var toolbarItems = new Array();
@@ -484,8 +485,8 @@
         var pt = GetMapFrame().ScreenToMapUnits(x, y);
         if(latlon)
             pt = GetMapFrame().MapUnitsToLatLon(pt.X, pt.Y);
-        x = FormatLocalizedDecimal(pt.X, 6);
-        y = FormatLocalizedDecimal(pt.Y, 6);
+        x = FormatLocalizedDecimal(pt.X, cursorPosDecimalPlaces);
+        y = FormatLocalizedDecimal(pt.Y, cursorPosDecimalPlaces);
 
         var text;
         if(latlon)



More information about the mapguide-commits mailing list