[Chameleon-dev] [Bug 762] [Chameleon - Widget] new widgets for zoom to previous extent, zoom to next extent

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Mon Oct 25 08:43:16 EDT 2004


pspencer at dmsolutions.ca changed:

           What    |Removed                     |Added
            Summary|New widgets: zoom to        |[Chameleon - Widget] new
                   |previous extent, zoom to    |widgets for zoom to previous
                   |next extent                 |extent, zoom to next extent

------- Additional Comments From pspencer at dmsolutions.ca  2004-10-25 08:43 -------
Bart, I'm with Bill in not putting this capability into the wrappers, it doesn't
really have a place there and will only end up bloating the map file, making it
slower to load over time.  I'd rather see the information stored in the session.

I did some experimentation with an 'undo' and 'redo' capability for Studio that
involved managing the keys returned by 'saveState()'.  This actually worked
fairly well but I never finished it due to time constraints.  The capability
worked by moving forward and backward through the map files saved in the session
directory.  This had the effect of zoom next/previous but also tracked changes
such as layers getting deleted or added ... I mention this in case your
requirements might include such a feature.

If you are looking for just extents, then I would prefer a solution closer to
Bill's suggestion, although I am not convinced about the names ... but they must
be pretty good since I can't think of anything better ;)  In fact, the way
things have been going, I would say that there should be only one widget, the
ExtentHistory widget.  It would expose a javascript API with
ZoomToPreviousExtent() and ZoomToNextExtent() functions and they can be called
from Link widgets.  So a basic implementation would be:

<cwc2 type="ExtentHistory" />

<cwc2 type="Link" type="javascript" jsfunction="ZoomToPreviousExtent" ... />
<cwc2 type="Link" type="javascript" jsfunction="ZoomToNextExtent" ... />

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

More information about the Chameleon-dev mailing list