Bug 1019

Summary: [Chameleon- Scale Widget] Scale widget does not update scale correctly when other nav tools selected
Product: Chameleon Reporter: William Bronsema <wbronsema@dmsolutions.ca>
Component: WidgetAssignee: William Bronsema <wbronsema@dmsolutions.ca>
Status: RESOLVED FIXED    
Severity: normal CC: chameleon-dev@lists.maptools.org
Priority: P2    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.