[Chameleon-dev] [Bug 1506] New: [Chameleon-Widget]Add support to JSAPI and variable map sizes to PanMap widget

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Tue Jun 20 11:19:23 EDT 2006


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

           Summary: [Chameleon-Widget]Add support to JSAPI and variable map
                    sizes to PanMap widget
           Product: Chameleon
           Version: 2.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: nsavard at mapgears.com


This bug is to track down changes make to PanMap widget submitted by Liz Godwin.
 Her patch adds support to JSAPI and variable map sizes, and recentre on click.


Message sent by Liz Godwin:

Hi there,

I'm not actively in the developers group right now so I'll just submit this
change to this list.  If it's believed that it should be added to the CVS
version, great!

Attached is a copy of my PanMap.widget.php file.  Changes are as follows:
1.  support for JSAPI, and variable mapsizes (a consequence of other chnages
I've made to support variable mapsizing in JSAPI mode)

By this I mean that changing the size of a map was not possible in JSAPI mode. 
I've done this, but rather roughly for now, in other files.  Because the page
would need to be redrawn to support a map resize, having PanMap talk to JSAPI
for map size was not necessary.

Also, in implementing this I discovered that the draggable area was restricted
to the initial size of the map.  So there's a line in there updating this too.

2.. support for recentre on click, not just pan.
Previously, if a user clicked on a point, it was caught and nothing happened. 
Now it's recentering on that point.  I took code from the recentre widget to do
this.


I think these are good changes.  I realize that the JSAPI support may not be
relevant yet, but the widget could always be ready for when it is.

Cheers

Liz Godwin

P.S.  I originally sent the file unzipped so it may be stuck in a moderator's
list someplace.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Chameleon-dev mailing list