[Mapbender-commits] r7928 - branches/2.7/lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jul 12 09:28:33 EDT 2011
Author: verenadiewald
Date: 2011-07-12 06:28:33 -0700 (Tue, 12 Jul 2011)
New Revision: 7928
Modified:
branches/2.7/lib/printbox.js
Log:
calculate center pos of printbox using map.getWidth() and map.getHeight()
Modified: branches/2.7/lib/printbox.js
===================================================================
--- branches/2.7/lib/printbox.js 2011-07-11 12:54:01 UTC (rev 7927)
+++ branches/2.7/lib/printbox.js 2011-07-12 13:28:33 UTC (rev 7928)
@@ -40,7 +40,8 @@
// The pointArray is moved by the center vector.
// default: place box in the center of the map
- var center = options.center || new Point(map.width/2,map.height/2);
+ //var center = options.center || new Point(map.width/2,map.height/2);
+ var center = options.center || new Point(map.getWidth()/2,map.getHeight()/2);
// the center in real world coordinates
var centerMap = null;
More information about the Mapbender_commits
mailing list