[Mapbender-commits] r8556 - in trunk/mapbender: http/javascripts lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Feb 6 05:51:40 PST 2013
Author: armin11
Date: 2013-02-06 05:51:40 -0800 (Wed, 06 Feb 2013)
New Revision: 8556
Modified:
trunk/mapbender/http/javascripts/initWmcObj.php
trunk/mapbender/lib/class_GetApi.php
Log:
Some small bugfixes for zoom param ;-)
Modified: trunk/mapbender/http/javascripts/initWmcObj.php
===================================================================
--- trunk/mapbender/http/javascripts/initWmcObj.php 2013-02-06 07:54:52 UTC (rev 8555)
+++ trunk/mapbender/http/javascripts/initWmcObj.php 2013-02-06 13:51:40 UTC (rev 8556)
@@ -483,7 +483,9 @@
$e = new mb_notice("initWmcObj.php: session GML zoom done");
//overwrite extent of wmc with information from GetApi if given
$e = new mb_notice("initWmcObj.php: check ZOOM API");
+
$zoom = $getApi->getZoom();
+$e = new mb_notice("initWmcObj.php: check ZOOM API: ".implode(',',$zoom));
if (count($zoom) == 4 || count($zoom) == 5) {
$e = new mb_notice("initWmcObject.php: found EXTENT");
if (count($zoom) == 5){
Modified: trunk/mapbender/lib/class_GetApi.php
===================================================================
--- trunk/mapbender/lib/class_GetApi.php 2013-02-06 07:54:52 UTC (rev 8555)
+++ trunk/mapbender/lib/class_GetApi.php 2013-02-06 13:51:40 UTC (rev 8556)
@@ -231,13 +231,14 @@
$i = 0;
foreach ($inputArray as $id) {
if (is_numeric($id)) {
- $input[$i++]["id"] = $id;
+ //do nothing
} else {
$e = new mb_exception("lib/class_GetApi.php: found non numeric value in zoom parameter: at pos ".$i." : ".$id);
return false;
}
+ $i++;
}
- return $input;
+ return $inputArray;
break;
case 5:
//read out coordinates and epsg
More information about the Mapbender_commits
mailing list