<div>I use </div>
<div> </div><font size="2">
<p>map.events.register(</p></font><font color="#800000" size="2">'moveend'</font><font size="2">, map, </font><font color="#0000ff" size="2">function</font><font size="2"> (e) {
<div></div></font>}
<div> </div>
<div>To find the coordinates after a mouse movement of either a pan or drag.</div>
<div> </div>
<div>Linda<br><br> </div>
<div><span class="gmail_quote">On 9/7/07, <b class="gmail_sendername">Huub Fleuren</b> <<a href="mailto:huub.fleuren@geodan.nl">huub.fleuren@geodan.nl</a>> 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'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's what we're doing anyway<br><br>just call a function there: recalculateLayers(!dragging || zoomChanged)<br><br>I was wondering, but couldn'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("zoomend") getstriggered (after update)<br>why does map.events.register("dragend") nowhere get triggered<br><br>I saw that i could addEvents, and trigger them like
<br> if (!dragging) { this.events.triggerEvent("movestart"); }<br><br>I added "beforeupdate" 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>