<div>I use </div>
<div>&nbsp;</div><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) {
<div></div></font>}
<div>&nbsp;</div>
<div>To find the coordinates after a mouse movement of either a pan or drag.</div>
<div>&nbsp;</div>
<div>Linda<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/7/07, <b class="gmail_sendername">Huub Fleuren</b> &lt;<a href="mailto:huub.fleuren@geodan.nl">huub.fleuren@geodan.nl</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi List,<br><br>I found a spot we&#39;re i could hook in my custom function just before a<br>mapUpdate after pan or zoom operations (also PanZoomBar)
<br><br>In Map.js from line1057 onwards you read that there are two pan/zoom<br>occasions were a map is going to fire al requests again, in other words<br>before it goes thru all layers that were added to the map.<br>This is the place were you might want to add some layers dynamically,
<br>that&#39;s what we&#39;re doing anyway<br><br>just call a function there: recalculateLayers(!dragging || zoomChanged)<br><br>I was wondering, but couldn&#39;t find my way, if there are events that can<br>be triggered to do this.
<br>There is a list of events in Map.js<br>why does map.events.register(&quot;zoomend&quot;) getstriggered (after update)<br>why does map.events.register(&quot;dragend&quot;) nowhere get triggered<br><br>I saw that i could addEvents, and trigger them&nbsp;&nbsp;like
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!dragging) { this.events.triggerEvent(&quot;movestart&quot;); }<br><br>I added &quot;beforeupdate&quot; to the EVENT_TYPES of Map.js<br>triggered it on Map.js line 1057<br>implemented the registered event in my application
<br><br>Did not work<br><br>Regards,<br>Huub<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">
http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br>