[Mapbender-commits] r3442 - branches/print_dev/http/print
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jan 13 11:07:01 EST 2009
Author: mschulz
Date: 2009-01-13 11:07:01 -0500 (Tue, 13 Jan 2009)
New Revision: 3442
Modified:
branches/print_dev/http/print/mod_printPDF.php
Log:
merged from trunk
Modified: branches/print_dev/http/print/mod_printPDF.php
===================================================================
--- branches/print_dev/http/print/mod_printPDF.php 2009-01-13 16:06:28 UTC (rev 3441)
+++ branches/print_dev/http/print/mod_printPDF.php 2009-01-13 16:07:01 UTC (rev 3442)
@@ -139,6 +139,7 @@
if(size != "false" && format != "false"){
var ind = pt.getMapObjIndexByName(target);
+ var map_el = pt.mb_mapObj[ind].getDomElement();
var coord = pt.mb_mapObj[ind].extent.split(",");
var centerX = parseFloat(coord[0]) + (parseFloat(coord[2]) - parseFloat(coord[0]))/2
var centerY = parseFloat(coord[1]) + (parseFloat(coord[3]) - parseFloat(coord[1]))/2
@@ -189,10 +190,8 @@
pt.mb_mapObj[ind].width = Math.round(map_width);
pt.mb_mapObj[ind].height = Math.round(map_height);
- pt.document.getElementById(target).style.width = Math.round(map_width);
- pt.document.getElementById(target).style.height = Math.round(map_height);
- pt.window.frames[target].document.getElementById("maps").style.width = Math.round(map_width);
- pt.window.frames[target].document.getElementById("maps").style.height = Math.round(map_height);
+ map_el.style.width = Math.round(map_width);
+ map_el.style.height = Math.round(map_height);
//pt.setMapRequest(target);
// pt.mb_repaintScale(target, null, null, prevscale);
@@ -225,6 +224,7 @@
if(size != "" && format != ""){
var ind = pt.getMapObjIndexByName(target);
+ var map_el = pt.mb_mapObj[ind].getDomElement();
var coord = pt.mb_mapObj[ind].extent.split(",");
var centerX = parseFloat(coord[0]) + (parseFloat(coord[2]) - parseFloat(coord[0]))/2
var centerY = parseFloat(coord[1]) + (parseFloat(coord[3]) - parseFloat(coord[1]))/2
@@ -234,10 +234,8 @@
pt.mb_mapObj[ind].width = Math.round(map_width);
pt.mb_mapObj[ind].height = Math.round(map_height);
- pt.document.getElementById(target).style.width = Math.round(map_width);
- pt.document.getElementById(target).style.height = Math.round(map_height);
- pt.window.frames[target].document.getElementById("maps").style.width = Math.round(map_width);
- pt.window.frames[target].document.getElementById("maps").style.height = Math.round(map_height);
+ map_el.style.width = Math.round(map_width);
+ map_el.style.height = Math.round(map_height);
//pt.setMapRequest(target);
// pt.mb_repaintScale(target, null, null, pt.mb_getScale(target));
More information about the Mapbender_commits
mailing list