[Chameleon-dev] [Bug 1403] New: UpdateMap.php SCALE_ZOOM code block
location
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Wed Apr 5 10:21:47 EDT 2006
http://bugzilla.maptools.org/show_bug.cgi?id=1403
Summary: UpdateMap.php SCALE_ZOOM code block location
Product: Chameleon
Version: 2.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: mcgrawj at agr.gc.ca
There is a note in UpdateMap.php around line 237:
//scale zoom : ?? should be in nav tools
if (isset( $HTTP_FORM_VARS["SCALE_ZOOM"]) &&
$HTTP_FORM_VARS["SCALE_ZOOM"] != "")
{
:
We didn't know if it should be in NavTools.php or not, but for our application
we did move it up into the NAV_CMD block directly above where it is currently
located. It seemed more properly grouped with them and we found we were getting
some errors zooming when using the scale_zoom because it was setting the hidden
variables for BuildHTMLOutputMapExtentsChanged($oMap); twice somehow.
Anyway, we moved the block into the NAV_CMD block above as follows:
/* -------------------------------------------------------------------- */
/* Look for nav commands. */
/* -------------------------------------------------------------------- */
if (isset($HTTP_FORM_VARS["NAV_CMD"]) && $HTTP_FORM_VARS["NAV_CMD"] != "")
{
:
if ($HTTP_FORM_VARS["NAV_CMD"] == "SCALE_ZOOM" &&
isset( $HTTP_FORM_VARS["SCALE_ZOOM"]) &&
$HTTP_FORM_VARS["SCALE_ZOOM"] != "")
{
include("widgets/ScaleZoom/ScaleZoom.widget.php");
$oWidget = new ScaleZoom();
$oWidget->InitDefaults();
$oWidget->SetMap($oMapSession);
$oWidget->SetURL($oHttpFormVars, $HTTP_FORM_VARS);
$_SESSION["gszCurrentState"] = $oMapSession->saveState();
}
$szFormContents .= BuildHTMLOutputMapExtentsChanged($oMap);
}
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Chameleon-dev
mailing list