[Mapbender-commits] r3570 - branches/print_dev/http/print/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Feb 18 11:30:38 EST 2009


Author: mschulz
Date: 2009-02-18 11:30:38 -0500 (Wed, 18 Feb 2009)
New Revision: 3570

Modified:
   branches/print_dev/http/print/classes/mbMeasureDecorator.php
Log:
added clipping of drawn measured elements

Modified: branches/print_dev/http/print/classes/mbMeasureDecorator.php
===================================================================
--- branches/print_dev/http/print/classes/mbMeasureDecorator.php	2009-02-18 16:09:06 UTC (rev 3569)
+++ branches/print_dev/http/print/classes/mbMeasureDecorator.php	2009-02-18 16:30:38 UTC (rev 3570)
@@ -57,6 +57,7 @@
 		$nr_of_points = count($theFullArr);
 		$e = new mb_notice("mbMeasureDecorator: closed polygon: ".$isClosed);
 
+		$this->pdf->objPdf->ClippingRect($mapOffset_left, $mapOffset_bottom, $map_width, $map_height, false);
 		if ($isClosed) {
 			$this->pdf->objPdf->Polygon($thePolyArr);
 		}
@@ -70,6 +71,7 @@
 				}
 			}
 		}
+		$this->pdf->objPdf->UnsetClipping();
 
 	}
 	



More information about the Mapbender_commits mailing list