[Chameleon-dev] [Bug 762] New: New widgets: zoom to previous extent, zoom to next extent

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Mon Oct 25 03:25:39 EDT 2004


           Summary: New widgets: zoom to previous extent, zoom to next
           Product: Chameleon
           Version: 1.99
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: bartvde at xs4all.nl

For our customer we want to implement 2 new widgets, one to zoom to the previous
extent, and one to zoom to the next extent. These widgets should provide easy
navigation to switch between map extents in a map session.

I want to use this bugreport to discuss the implementation and the name of the

ZoomToPreviousExtent - should ideally be disabled when the map session starts.
ZoomToNextExtent - should ideally be disabled if there is no next extent.

The most logical place to implement this behaviour is IMHO map_session.php in
common/wrapper. Maybe the savestate function can fill an extent value into an
array member variable when the extent changes, and the map session can keep a
pointer to the current index of this array.

When a layer is removed from the map, this also results in a new map file saved
into the session, but the extent is unchanged. So there should be some logic to
see which extents are equal, in order to have them excluded from the array
member variable.

Any more thoughts?

------- 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