svn commit: r651 - trunk/mapbender/http/classes/class_wms.php

christoph at osgeo.org christoph at osgeo.org
Wed Jul 12 11:49:40 EDT 2006


Author: christoph
Date: 2006-07-12 15:49:40+0000
New Revision: 651

Modified:
   trunk/mapbender/http/classes/class_wms.php

Log:
fixed 1 bug: now checking minscale for too big values

Modified: trunk/mapbender/http/classes/class_wms.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_wms.php?view=diff&rev=651&p1=trunk/mapbender/http/classes/class_wms.php&p2=trunk/mapbender/http/classes/class_wms.php&r1=650&r2=651
==============================================================================
--- trunk/mapbender/http/classes/class_wms.php	(original)
+++ trunk/mapbender/http/classes/class_wms.php	2006-07-12 15:49:40+0000
@@ -375,13 +375,9 @@
 				}
 			}
 			if(strtoupper($element[tag]) == "SCALEHINT"){
-				if($element[attributes][max]>1000){
-					$max = 0;	
-				}
-				else{
-					$max = $element[attributes][max]; 	
-				}
-				$this->objLayer[$cnt_layer]->layer_minscale = round(($element[attributes][min] * 2004.3976484406788493955738891127));
+				if($element[attributes][max]>1000) $max = 0; else $max = $element[attributes][max]; 	
+				if($element[attributes][min]>1000) $min = 0; else $min = $element[attributes][min]; 	
+				$this->objLayer[$cnt_layer]->layer_minscale = round(($min * 2004.3976484406788493955738891127));
 				$this->objLayer[$cnt_layer]->layer_maxscale = round(($max * 2004.3976484406788493955738891127));
 			}
 		} 




More information about the Mapbender_commits mailing list