Bug 989 - Extent lost on submit when using CWCJSAPI
: Extent lost on submit when using CWCJSAPI
Status: RESOLVED FIXED
: Chameleon
Widget
: 2.0
: PC Windows XP
: P2 normal
: ---
Assigned To:
:
:
:
: 1030
:
  Show dependency treegraph
 
Reported: 2005-03-16 23:08 by
Modified: 2005-05-18 13:47 (History)


Attachments


Note

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


Description From 2005-03-16 23:08:55
Using the JSAPI widget, the extent is lost when submitting, if you have used any
of the navigation tools. I can't see any logic about how it is lost. I have
tried forcing the form extent variables to be set to the javascript extent
variables, just before the page is submitted in updatemap.widget.php. Using
javascript alerts, I can see that my form extent variables before submitting
were correct (minx, miny, etc.). What can cause the extent to be changed, if the
submitted extent is correct? Is the map not re-loaded correctly? 

Jacob
------- Comment #1 From 2005-05-17 02:57:18 -------
This bug is caused by the scale widget not working correctly, as pointed out by
Bart. The incorrect value for the scale variable in the cwcjsapi causes the
extent to be changed on submitting. Not having the scale widget on the page
makes this problem disappear (have tested this).
------- Comment #2 From 2005-05-17 14:06:11 -------
Jacob,

are you able to test this one again with the fix for bug 1030? The change was in
UpdateMap.php. Are you able to get the latest from CVS?

http://chameleon.maptools.org/bugzilla/show_bug.cgi?id=1030

Bart
------- Comment #3 From 2005-05-17 14:06:43 -------
Adding myself to the cc.
------- Comment #4 From 2005-05-17 20:58:22 -------
Works well now (using the JSAPI sample). I'm glad this is fixed. It made it
impossible to deploy a site using the CWCJSAPI.
------- Comment #5 From 2005-05-18 13:47:54 -------
Setting dependency to bug 1030 and resolving bug (FIXED).