[Mapbender-commits] r4470 - branches/print_dev/http/print/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Aug 4 07:47:47 EDT 2009
Author: mschulz
Date: 2009-08-04 07:47:46 -0400 (Tue, 04 Aug 2009)
New Revision: 4470
Modified:
branches/print_dev/http/print/classes/mbMapDecorator.php
Log:
printPDF as MB module and printbox first integration (no rotation yet ...)
Modified: branches/print_dev/http/print/classes/mbMapDecorator.php
===================================================================
--- branches/print_dev/http/print/classes/mbMapDecorator.php 2009-08-04 09:22:23 UTC (rev 4469)
+++ branches/print_dev/http/print/classes/mbMapDecorator.php 2009-08-04 11:47:46 UTC (rev 4470)
@@ -56,8 +56,13 @@
$height = $this->conf->height;
$res = $this->pdf->objPdf->k * ($this->res_dpi/72);
$myURL = new stripRequest($array_urls[0]);
- $e = new mb_notice("mbMapDecorator: original bbox: ".$myURL->get('BBOX'));
- $this->pdf->setMapInfo($this->conf->x_ul, $this->conf->y_ul, round($width*$res), round($height*$res), $this->pdf->adjustBbox(round($width*$res), round($height*$res), explode(",",$myURL->get('BBOX')), $myURL->get('srs'), $this->res_dpi));
+ $e = new mb_notice("mbMapDecorator: original bbox: ".$myURL->get('BBOX'));
+ if (isset($_REQUEST["coordinates"]) && $_REQUEST["coordinates"]!= "") {
+ $mapPdfBbox = $_REQUEST["coordinates"];
+ } else {
+ $mapPdfBbox = $myURL->get('BBOX');
+ }
+ $this->pdf->setMapInfo($this->conf->x_ul, $this->conf->y_ul, $width, $height, $this->pdf->adjustBbox($this->conf, explode(",",$mapPdfBbox), $myURL->get('srs')));
$e = new mb_notice("mbMapDecorator: adjusted bbox: ".$this->pdf->getMapExtent());
for($i=0; $i<count($array_urls); $i++){
$m = new stripRequest($array_urls[$i]);
More information about the Mapbender_commits
mailing list