[Mapbender-commits] r8466 - branches/2.7/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Aug 22 03:31:08 PDT 2012
Author: verenadiewald
Date: 2012-08-22 03:31:08 -0700 (Wed, 22 Aug 2012)
New Revision: 8466
Modified:
branches/2.7/http/javascripts/map_obj.js
Log:
http://trac.osgeo.org/mapbender/ticket/884
Modified: branches/2.7/http/javascripts/map_obj.js
===================================================================
--- branches/2.7/http/javascripts/map_obj.js 2012-08-22 10:22:18 UTC (rev 8465)
+++ branches/2.7/http/javascripts/map_obj.js 2012-08-22 10:31:08 UTC (rev 8466)
@@ -786,7 +786,11 @@
var minY = parseFloat(arrayBBox[1]);
var maxX = parseFloat(arrayBBox[2]);
var maxY = parseFloat(arrayBBox[3]);
- return new Point(Math.round((aPoint.x - minX) * this.getWidth() / (maxX - minX)), Math.round((maxY - aPoint.y) * this.getHeight() / (maxY - minY)));
+
+ var newX = (aPoint.x - minX) * this.getWidth() / (maxX - minX);
+ var newY = (maxY - aPoint.y) * this.getHeight() / (maxY - minY);
+
+ return new Point(newX, newY);
};
/**
More information about the Mapbender_commits
mailing list