[Chameleon-dev] [Bug 944] New: Panmap widget - wrong extent after
drag
bugzilla-daemon at maptools.org
bugzilla-daemon at maptools.org
Tue Feb 1 02:46:13 EST 2005
http://www.maptools.org/bugzilla/show_bug.cgi?id=944
Summary: Panmap widget - wrong extent after drag
Product: Chameleon
Version: 2.0
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: normal
Priority: P2
Component: Widget
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: jacob.delfos at maunsell.com
In javascript mode (and perhaps normal mode), the panmap widget was not working
as it should. The image after dragging the map did not have the right extent. In
panmap.widget.php, on line 421, there is an if-statement testing whether the
mouse coordinates are smaller than 0. I don't know why this is there (was it
supposed to test whether the mouse coordinates are > 0?), but getting rid of the
condition, leaving the content of the body of the if-statement, fixes the problem:
-----------------------------------------------------------------
$szJsFunctionName = "PanMapWDragStart";
$szFunction = <<<EOT
/**
* {$szJsFunctionName}
* called when the drag starts in PanMap widget.
*/
function {$szJsFunctionName}(x,y)
{
gnPanWFirstPointX = gMapWmouseX;
gnPanWFirstPointY = gMapWmouseY;
}
--------------------------------------------------------------
Jacob
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Chameleon-dev
mailing list