<div>Richard,</div>
<div>&nbsp;</div>
<div>I do this with the following event:</div>
<div>&nbsp;</div>
<div><br><font size="2">
<p>map.events.register(</p></font><font color="#800000" size="2">&#39;moveend&#39;</font><font size="2">, map, </font><font color="#0000ff" size="2">function</font><font size="2"> (e) {
<p>mapBounds = map.getExtent();</p>
<p>// Do your stuff here...set cookies....set variables...</p>
<p>Event.stop(e);</p>
<p>});</p></font>Linda Rawson<br></div>
<div class="gmail_quote">On Nov 13, 2007 1:33 AM, Richard Thurbin &lt;<a href="mailto:richard.thurbin@cloudamber.com">richard.thurbin@cloudamber.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi All. I want to do some code that saves where the user has zoomed and<br>panned to in to a session variable. This will mean when they come back to a
<br>map it is where they left off.<br><br>I have got it currently running with a map.events.register(&quot;click&quot;.... But<br>this event is not raised if the user pans by dragging. Could someone please<br>give me an example of how to use the OpenLayers. 
Handler.Drag class? I am<br>very new to jscript and cant yet turn some of the more complicated aspects<br>of the library in to code without seeing an example first!<br><br><a href="http://dev.openlayers.org/docs/files/OpenLayers/Handler/Drag-js.html" target="_blank">
http://dev.openlayers.org/docs/files/OpenLayers/Handler/Drag-js.html</a><br><br>Any help appreciated.<br><br>--<br>Richard Thurbin &nbsp; <a href="http://www.cloudamber.com/" target="_blank">www.cloudamber.com</a> &nbsp; 07917 704 145
<br><br>No virus found in this outgoing message.<br>Checked by AVG Free Edition.<br>Version: 7.5.503 / Virus Database: 269.15.30/1127 - Release Date: 12/11/2007<br>21:19<br><br><br><br>_______________________________________________
<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br></blockquote>
</div><br>