Bug 1019 - [Chameleon- Scale Widget] Scale widget does not update scale correctly when other nav tools selected
: [Chameleon- Scale Widget] Scale widget does not update scale correctly when o...
Status: RESOLVED FIXED
: Chameleon
Widget
: 2.0
: PC Windows XP
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-05-03 11:20 by
Modified: 2005-05-05 10:07 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-05-03 11:20:39
If there are other nav tools in the application and they are the "default" nav
tool or have been used immediately prior to using the scale widget to set the
scale those nav widgets are processed after the scale is set resulting in an
incorrect scale level.

Steps to reproduce:
1) Add zoomin widget to template and set as default.
2) Add scale widget to template and set the "SUBMITONKEYPRESS" attribute to "true".
3) Load the application and enter a new scale (200000 in my example).
4) Use the enter key to submit the change scale request.

After the page has loaded, the scale I see is 100000.  I'm guessing that the
scale is being set, but in addition to that, a zoom in is being performed at a
default factor of 2 at the center of the map caused by the zoomin widget being
selected.
------- Comment #1 From 2005-05-04 08:20:18 -------
please investigate and correct widgets as necessary.
------- Comment #2 From 2005-05-05 10:07:02 -------
Fixed in CVS main and 20 branches.  Updated the Scale widget to clear the
NAV_CMD var on keypress.  Updated the UpdateMap widget to clear the NAV_CMD when
clicked.