[OpenLayers-Users] OpenLayers. Handler.Drag

Linda Rawson linda.rawson at gmail.com
Tue Nov 13 10:18:24 EST 2007


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 <richard.thurbin at cloudamber.com>
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 at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071113/9bf61a75/attachment.html


More information about the Users mailing list