[OpenLayers-Users] OpenLayers. Handler.Drag

Gabriel Neumann g.neumann at brain-scc.de
Tue Nov 13 03:47:33 EST 2007


Hello,

You can use the event "moveend" to be notified for zoom and pan/drag 
events. It is fired when the user releases the mouse button or click on 
the zoombar.

map.events.register('moveend', myEventHandler, myEventHandler.onMoveend);

Greetings,
Gabriel Neumann


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




More information about the Users mailing list