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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Dec 3 04:01:24 EST 2007


Author: christoph
Date: 2007-12-03 04:01:24 -0500 (Mon, 03 Dec 2007)
New Revision: 1882

Modified:
   trunk/mapbender/http/javascripts/point.js
Log:
removed parseFloat for performance's sake

toString now returns geoJSON

Modified: trunk/mapbender/http/javascripts/point.js
===================================================================
--- trunk/mapbender/http/javascripts/point.js	2007-12-03 08:59:11 UTC (rev 1881)
+++ trunk/mapbender/http/javascripts/point.js	2007-12-03 09:01:24 UTC (rev 1882)
@@ -18,13 +18,15 @@
  	 *
 	 * @type Float
 	 */
-	this.x = parseFloat(x);
+//	this.x = parseFloat(x);
+	this.x = x;
  	/**
  	 * y value of the {@link Point}
 	 *
 	 * @type Float
 	 */
-	this.y = parseFloat(y);
+//	this.y = parseFloat(y);
+	this.y = y;
 }
 /**
  * computes the distance between a {@link Point} p and this {@link Point}
@@ -100,7 +102,7 @@
  * @type String
  */
 Point.prototype.toString = function(){
-	return "(" + this.x + ", " + this.y + ")";
+	return "[" + this.x + ", " + this.y + "]";
 }
 
 



More information about the Mapbender_commits mailing list