<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Well, <br>
<br>
it worked the first time, also with my onwn inventions , sorry.<br>
<br>
the event i was searching for was "movestart"<br>
it's on line 1057 of Maps.js<br>
ghe<span class="moz-smiley-s6"><span> :-[ </span></span><br>
<br>
<br>
<br>
Huub<br>
<br>
<br>
<br>
Huub Fleuren wrote:
<blockquote cite="mid:46E3A707.6030000@geodan.nl" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
Hi <br>
  <br>
Thanks for your answer.<br>
  <br>
The 'moveend' works. <br>
It works always after every zoom or drag.<br>
So it is triggered after zooming as well ('zoomend' event)... so there
is, bytheway, no possibility to have exclusive actions. <br>
  <br>
But, i was looking for the beforeupdate event, these two are
afterupdate.<br>
Lots of handling with lots of layers will fire a double amount of
requests.<br>
  <br>
I'll stick to line 1057 for now, maybe continue to search ways to
enhance with a new 'beforeupdate' event,<br>
it would have to go off as soon as the new bbox and clicked
point/worldcoordinate is calculated.<br>
  <br>
  <br>
Huub<br>
  <br>
  <br>
Linda Rawson wrote:
  <blockquote
 cite="mid:6e9b30fb0709071729v5e934f3agb43354ddb8a4222c@mail.gmail.com"
 type="cite">
    <div>I use </div>
    <div>&nbsp;</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) { </font>}</blockquote>
)<br>
  <blockquote
 cite="mid:6e9b30fb0709071729v5e934f3agb43354ddb8a4222c@mail.gmail.com"
 type="cite">
    <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 moz-do-not-send="true"
 href="mailto:huub.fleuren@geodan.nl">huub.fleuren@geodan.nl</a>&gt;
wrote:</span>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">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&nbsp;&nbsp;like <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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 moz-do-not-send="true" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
      <a moz-do-not-send="true"
 href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>
    </blockquote>
    </div>
    <br>
  </blockquote>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
  </pre>
  <pre wrap="">
<hr size="4" width="90%">
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.485 / Virus Database: 269.13.10/995 - Release Date: 9/8/2007 1:24 PM
  </pre>
</blockquote>
<br>
</body>
</html>