[Mapbender-commits] r1253 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Apr 12 03:37:31 EDT 2007
Author: christoph
Date: 2007-04-12 03:37:31 -0400 (Thu, 12 Apr 2007)
New Revision: 1253
Modified:
trunk/mapbender/http/classes/class_wmc.php
Log:
bugfix #29
http://trac.osgeo.org/mapbender/ticket/29
thanks to Ronald Woita
Modified: trunk/mapbender/http/classes/class_wmc.php
===================================================================
--- trunk/mapbender/http/classes/class_wmc.php 2007-04-10 16:59:23 UTC (rev 1252)
+++ trunk/mapbender/http/classes/class_wmc.php 2007-04-12 07:37:31 UTC (rev 1253)
@@ -662,12 +662,12 @@
$wmc_string .= "\t\tvar found = false;\n";
$wmc_string .= "\t\tfor (var j=0; j < " . $target . "wms.length && found == false; j++) {\n";
$wmc_string .= "\t\t\tif (" . $target . "wms[j].wms_getmap == old_mapObj[i].wms[0].wms_getmap) {\n";
- $wmc_string .= "\t\t\t\t" . $target . "mb_registerMapObj('overview', old_mapObj[i].elementName, j, old_mapObj[i].width, old_mapObj[i].width);\n";
+ $wmc_string .= "\t\t\t\t" . $target . "mb_registerMapObj('overview', old_mapObj[i].elementName, j, old_mapObj[i].width, old_mapObj[i].height);\n";
$wmc_string .= "\t\t\t\tfound = true;\n";
$wmc_string .= "\t\t\t}\n";
$wmc_string .= "\t\t}\n";
$wmc_string .= "\t\tif (!found) {\n";
- $wmc_string .= "\t\t\t" . $target . "mb_registerMapObj('overview', old_mapObj[i].elementName, 0, old_mapObj[i].width, old_mapObj[i].width);\n";
+ $wmc_string .= "\t\t\t" . $target . "mb_registerMapObj('overview', old_mapObj[i].elementName, 0, old_mapObj[i].width, old_mapObj[i].height);\n";
$wmc_string .= "\t\t}\n";
$wmc_string .= "\t}\n";
$wmc_string .= "}\n";
More information about the Mapbender_commits
mailing list