<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Giuseppe,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>That problem has been there for a while. I once
fixed it in my own site in version 1.0.4 when I did some debugging, but I never
submitted a bug for it. Paul, does a bug exist for it? I didn't find one, but it
seemed so obvious that I can't imagine no one else noticed in all that
time.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is what needs to be done:</FONT></DIV>
<DIV><FONT face=Arial size=2>in UpdateMap.widget.php, line 137, inside the body
of the function "clickUpdateMap", the following lines should be
added:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>
{$this->mszHTMLForm}.MAP_EXTENTS_MINX.value = goCWCJSAPI.oMap.minx;
//custom added, not to lose extents<BR>
{$this->mszHTMLForm}.MAP_EXTENTS_MAXX.value =
goCWCJSAPI.oMap.maxx;<BR>
{$this->mszHTMLForm}.MAP_EXTENTS_MINY.value =
goCWCJSAPI.oMap.miny;<BR>
{$this->mszHTMLForm}.MAP_EXTENTS_MAXY.value =
goCWCJSAPI.oMap.maxy;<BR>
{$this->mszHTMLForm}.NAV_CMD.value = ""</FONT></DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>before the line</FONT></DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2> {$this->mszHTMLForm}.UPDATE_MAP.value =
"1";</FONT></DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This makes sure that whatever was changed in
javascript gets saved before it's submitted.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Giuseppe
Tradigo<BR>Sent: 24 January 2005 00:58<BR>To: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A><BR>Subject:
[Chameleon] Not usual "update" widget behaviour while updating map</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>By activating JS-API using the following tags in the template
file:</DIV>
<DIV> </DIV>
<DIV><cwc2 type="cwcjsapi" debug="false"/><BR><cwc2
type="SharedResource" name="CWCJSAPI"/></DIV>
<DIV> </DIV>
<DIV>the "update" widget has a reproducible wrong behaviour: using the
zoom<BR>widget a couple of times over the map and then clicking update
(wether<BR>or not changing the visible layers) will cause the map-view beeing
reset<BR>to the center of the map.</DIV>
<DIV> </DIV>
<DIV>----------------------------------------<BR>Debugging is twice as hard as
writing the code in the first place.<BR>Therefore, if you write the code as
cleverly as possible, you are, by<BR>definition, not smart enough to debug
it.<BR> - Brian W. Kernighan </DIV>
<DIV> </DIV>
<DIV>-- <BR>No virus found in this outgoing message.<BR>Checked by AVG
Anti-Virus.<BR>Version: 7.0.300 / Virus Database: 265.7.2 - Release Date:
21/01/2005<BR> </DIV>
<DIV> </DIV>
<DIV>_______________________________________________<BR>Chameleon mailing
list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV></FONT>
<DIV><FONT face=Arial size=2>JACOB DELFOS<BR>SPATIAL INFORMATION
ANALYST<BR>Maunsell Australia Pty Ltd<BR>629 Newcastle Street, WA 6007<BR>PO Box
81, WA 6902<BR>Leederville <BR>Western Australia<BR>ABN 20 093 846
925</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Tel + 61 8 9281
6185<BR>Fax + 61 8 9281 6297<BR><A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A></FONT></DIV></BODY></HTML>