Richard,

I do this with the following event:


map.events.register('moveend', map, function (e) {

mapBounds = map.getExtent();

// Do your stuff here...set cookies....set variables...

Event.stop(e);

});
Linda Rawson
On Nov 13, 2007 1:33 AM, Richard Thurbin <[EMAIL PROTECTED]>
wrote:

> Hi All. I want to do some code that saves where the user has zoomed and
> panned to in to a session variable. This will mean when they come back to
> a
> map it is where they left off.
>
> I have got it currently running with a map.events.register("click".... But
> this event is not raised if the user pans by dragging. Could someone
> please
> give me an example of how to use the OpenLayers. Handler.Drag class? I am
> very new to jscript and cant yet turn some of the more complicated aspects
> of the library in to code without seeing an example first!
>
> http://dev.openlayers.org/docs/files/OpenLayers/Handler/Drag-js.html
>
> Any help appreciated.
>
> --
> Richard Thurbin   www.cloudamber.com   07917 704 145
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.15.30/1127 - Release Date:
> 12/11/2007
> 21:19
>
>
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to