The JSAPI support for the variable mapsize is something I havn't quite set up (in the right way) for the mapsize widget yet, but the support in the PanMap widget is ready. I don't mind contributing the code I have to support variable mapsize for JSAPI mode, but it's in several places.
<br><br>To see how the functionality works - see for example... <a href="http://nlwis-snite1.agr.gc.ca/eco/?mode=a">http://nlwis-snite1.agr.gc.ca/eco/?mode=a</a> The <br>There are bug fixes currently pending deployment, so if the session ends for no reason, just start over.
<br><br>The mapsize here changes with a window resize event, but the code I have could be ported into the more static mapsize widget. I haven't quite decided the best way to do it yet. Right now it's all just in an attached javascript file I use for the template.
<br><br>Liz<br><br><div><span class="gmail_quote">On 6/20/06, <b class="gmail_sendername">Julien-Samuel Lacroix</b> <<a href="mailto:jlacroix@mapgears.com">jlacroix@mapgears.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Liz,<br>Thanks for the contribution. We'll open a bug and add it to the code.<br>I'm not sure I understand the first change you made though. Is it a<br>change to support variable mapsize in JSAPI mode which you will<br>
contribute later?<br><br>Julien<br><br>Liz Godwin wrote:<br>> Hi there,<br>><br>> I'm not actively in the developers group right now so I'll just submit<br>> this change to this list. If it's believed that it should be added to
<br>> the CVS version, great!<br>><br>> Attached is a copy of my PanMap.widget.php file. Changes are as follows:<br>> 1. support for JSAPI, and variable mapsizes (a consequence of other<br>> chnages I've made to support variable mapsizing in JSAPI mode)
<br>><br>> By this I mean that changing the size of a map was not possible in JSAPI<br>> mode. I've done this, but rather roughly for now, in other files.<br>> Because the page would need to be redrawn to support a map resize,
<br>> having PanMap talk to JSAPI for map size was not necessary.<br>><br>> Also, in implementing this I discovered that the draggable area was<br>> restricted to the initial size of the map. So there's a line in there
<br>> updating this too.<br>><br>> 2.. support for recentre on click, not just pan.<br>> Previously, if a user clicked on a point, it was caught and nothing<br>> happened. Now it's recentering on that point. I took code from the
<br>> recentre widget to do this.<br>><br>><br>> I think these are good changes. I realize that the JSAPI support may<br>> not be relevant yet, but the widget could always be ready for when it is.<br>><br>
> Cheers<br>><br>> Liz Godwin<br>><br>> P.S. I originally sent the file unzipped so it may be stuck in a<br>> moderator's list someplace.<br>><br>><br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<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><br>--<br>Julien-Samuel Lacroix<br>Mapgears<br><a href="http://www.mapgears.com/">http://www.mapgears.com/</a><br></blockquote></div><br>