Undo/Redo implementation

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Undo/Redo implementation

erilem
Hi OpenLayers dev!

I've been working on adding undo/redo support in OpenLayers.

In my first implementation undo/redo works for PanZoom operations,
i.e. extent operations resulting from user actions on the PanZoom
control object.

The implementation is available here :
<http://svn.openlayers.org/sandbox/elemoine/openlayers/>. See
<http://dev.openlayers.org/sandbox/elemoine/openlayers/examples/history.html>
to see the implementation at work.

The implementation design allows extending undo/redo to other
operations. So if there's interest in this work I could extend it
fairly easily.

I also plan to implement an History Control (Control/History.js). That
control will be composed of a right-arrow and a left-arrow for user to
navigate through the history.

Suggestions? Thoughts?

Thanks,
--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [hidden email]
http://www.camptocamp.com
_______________________________________________
Dev mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Undo/Redo implementation

erilem
On 3/18/07, Eric Lemoine <[hidden email]> wrote:

> Hi OpenLayers dev!
>
> I've been working on adding undo/redo support in OpenLayers.
>
> In my first implementation undo/redo works for PanZoom operations,
> i.e. extent operations resulting from user actions on the PanZoom
> control object.
>
> The implementation is available here :
> <http://svn.openlayers.org/sandbox/elemoine/openlayers/>. See
> <http://dev.openlayers.org/sandbox/elemoine/openlayers/examples/history.html>
> to see the implementation at work.

My implementation now works for (hopefully) all extent-type
operations. Meaning you can pan/zoom using tools/mousewheel and go
back to previous extent states.
Go check <http://dev.openlayers.org/sandbox/elemoine/openlayers/examples/history.html>
for a demo.

Thanks,

--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [hidden email]
http://www.camptocamp.com
_______________________________________________
Dev mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Undo/Redo implementation

Bart van den Eijnden (OSGIS)-2
In reply to this post by erilem
Very nice. This will come in handy.

I assume the eventual implementation will be two buttons on a toolbar?

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Eric Lemoine <[hidden email]>
Naar: [hidden email] <[hidden email]>
Onderwerp: Re: [OpenLayers-Dev] Undo/Redo implementation
Datum: 22/03/07 06:12

> On 3/18/07, Eric Lemoine &lt;[hidden email]&gt; wrote:
> &gt; Hi OpenLayers dev!
> &gt;
> &gt; I've been working on adding undo/redo support in OpenLayers.
> &gt;
> &gt; In my first implementation undo/redo works for PanZoom operations,
> &gt; i.e. extent operations resulting from user actions on the PanZoom
> &gt; control object.
> &gt;
> &gt; The implementation is available here :
> &gt; &lt;http://svn.openlayers.org/sandbox/elemoine/openlayers/&gt;. See
> &gt;
&lt;http://dev.openlayers.org/sandbox/elemoine/openlayers/examples/history.html&gt;
> &gt; to see the implementation at work.
>
> My implementation now works for (hopefully) all extent-type
> operations. Meaning you can pan/zoom using tools/mousewheel and go
> back to previous extent states.
> Go check
&lt;http://dev.openlayers.org/sandbox/elemoine/openlayers/examples/history.html&gt;

> for a demo.
>
> Thanks,
>
> --
> Eric Lemoine
>
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
>
> Tel : 00 33 4 79 44 44 96
> Mail : [hidden email]
> http://www.camptocamp.com
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://openlayers.org/mailman/listinfo/dev
>
>



_______________________________________________
Dev mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Undo/Redo implementation

erilem
On 3/22/07, Bart van den Eijnden (OSGIS) <[hidden email]> wrote:
> Very nice. This will come in handy.
>
> I assume the eventual implementation will be two buttons on a toolbar?

I'll be working on it.

--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [hidden email]
http://www.camptocamp.com
_______________________________________________
Dev mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/dev