[Mapbender-commits] r8214 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Nov 24 08:08:05 EST 2011


Author: armin11
Date: 2011-11-24 05:08:05 -0800 (Thu, 24 Nov 2011)
New Revision: 8214

Modified:
   trunk/mapbender/http/javascripts/mod_coords_div.php
Log:
Reduce floating values for dms seconds to 3 digits.

Modified: trunk/mapbender/http/javascripts/mod_coords_div.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_coords_div.php	2011-11-24 10:46:43 UTC (rev 8213)
+++ trunk/mapbender/http/javascripts/mod_coords_div.php	2011-11-24 13:08:05 UTC (rev 8214)
@@ -68,7 +68,7 @@
 	mod_showCoords_div_fix = "Selection: " + pos.x + " / " +  pos.y;
 	if (mod_showCoords_div_mapObj.epsg =='EPSG:4326' ||  mod_showCoords_div_mapObj.epsg=="EPSG:4258") {
 		strDMS = dec2dms(pos.x) + " / " + dec2dms(pos.y);
-		 mod_showCoords_div_fix += " - " + strDMS;
+		 mod_showCoords_div_fix += " <br> " + strDMS;
 	}
 	mod_showCoord_write(pos.x,pos.y);
 }
@@ -94,7 +94,7 @@
 		xD = Math.floor(x); //full deegrees
 		xM = (x-xD) * 60; //decimal minutes
 		xS = (xM-Math.floor(xM)) * 60;//decimal seconds
-		return xD + "°" + Math.floor(xM) + "'" + round(xS,4) + "''";
+		return xD + "°" + Math.floor(xM) + "'" + round(xS,3) + "''";
 }
 
 
@@ -103,7 +103,7 @@
 		var str = x + " / " +  y;
 		if (mod_showCoords_div_mapObj.epsg =='EPSG:4326' ||  mod_showCoords_div_mapObj.epsg=="EPSG:4258") {
 			strDMS = dec2dms(x) + " / " + dec2dms(y);
-			str += " - " + strDMS;
+			str += " <br> " + strDMS;
 		}
 		if(mod_showCoords_div_fix != ""){
 			str += "<div>" + mod_showCoords_div_fix + "</div>";



More information about the Mapbender_commits mailing list