[Mapbender-commits] r7667 - trunk/mapbender/http/print/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Mar 2 08:40:15 EST 2011
Author: astrid_emde
Date: 2011-03-02 05:40:15 -0800 (Wed, 02 Mar 2011)
New Revision: 7667
Modified:
trunk/mapbender/http/print/classes/mbMapDecorator.php
trunk/mapbender/http/print/classes/mbTextDecorator.php
Log:
changed offset of coord border, show coords without space, show date without spaece
Modified: trunk/mapbender/http/print/classes/mbMapDecorator.php
===================================================================
--- trunk/mapbender/http/print/classes/mbMapDecorator.php 2011-03-02 13:14:13 UTC (rev 7666)
+++ trunk/mapbender/http/print/classes/mbMapDecorator.php 2011-03-02 13:40:15 UTC (rev 7667)
@@ -106,16 +106,16 @@
if ($this->conf->coords == 1) {
$coord = mb_split(",",$this->pdf->getMapExtent());
- $myMinx = "R ".substr(round($coord[0]), 0, 4)." ".substr(round($coord[0]), 4, 3)."";
- $myMiny = "H ".substr(round($coord[1]), 0, 4)." ".substr(round($coord[1]), 4, 3)."";
- $myMaxx = "R ".substr(round($coord[2]), 0, 4)." ".substr(round($coord[2]), 4, 3)."";
- $myMaxy = "H ".substr(round($coord[3]), 0, 4)." ".substr(round($coord[3]), 4, 3)."";
+ $myMinx = "R ".substr(round($coord[0]), 0, 4)."".substr(round($coord[0]), 4, 3)."";
+ $myMiny = "H ".substr(round($coord[1]), 0, 4)."".substr(round($coord[1]), 4, 3)."";
+ $myMaxx = "R ".substr(round($coord[2]), 0, 4)."".substr(round($coord[2]), 4, 3)."";
+ $myMaxy = "H ".substr(round($coord[3]), 0, 4)."".substr(round($coord[3]), 4, 3)."";
$this->pdf->objPdf->setTextColor(0, 0, 0);
$this->pdf->objPdf->setFont($this->conf->coords_font_family, "", $this->conf->coords_font_size);
#RotatedText($x, $y, $txt, $angle)
$this->pdf->objPdf->RotatedText($this->conf->x_ul - 2, $this->conf->y_ul + $height, $myMinx, 90);
- $this->pdf->objPdf->Text($this->conf->x_ul, $this->conf->y_ul + $height + 5, $myMiny);
+ $this->pdf->objPdf->Text($this->conf->x_ul, $this->conf->y_ul + $height + 3.5, $myMiny);
$this->pdf->objPdf->RotatedText($this->conf->x_ul + $width + 2, $this->conf->y_ul, $myMaxy, 270);
$this->pdf->objPdf->Text($this->conf->x_ul + $width - ($this->pdf->objPdf->GetStringWidth($myMaxx)), $this->conf->y_ul - 2, $myMaxx);
Modified: trunk/mapbender/http/print/classes/mbTextDecorator.php
===================================================================
--- trunk/mapbender/http/print/classes/mbTextDecorator.php 2011-03-02 13:14:13 UTC (rev 7666)
+++ trunk/mapbender/http/print/classes/mbTextDecorator.php 2011-03-02 13:40:15 UTC (rev 7667)
@@ -29,7 +29,7 @@
foreach ($this->overrideMembersFromRequest as $overrideMemberFromRequest) {
switch ($this->conf->{$overrideMemberFromRequest}) {
case "date":
- $this->{$overrideMemberFromRequest} = date("j. n. Y");
+ $this->{$overrideMemberFromRequest} = date("j.n.Y");
break;
case "time":
$this->{$overrideMemberFromRequest} = date("G:i");
More information about the Mapbender_commits
mailing list