Is there any way, such as a program, to know or determinate which control call which control?<br>This is for having a better understanding about how OL works?<br>Thanks.<br><br><br><br><div><span class="gmail_quote">2007/10/4, Christopher Schmidt &lt;
<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Thu, Oct 04, 2007 at 11:39:07AM -0400, Michael Quentel wrote:
<br>&gt; What part of OL API would I find the code (actual class and function)<br>&gt; pertaining to panning on mouse drag (when user does mouse down on map,<br>&gt; then drags mouse, then releases mouse, causing map to pan).
<br><br>OpenLayers.Handler.Drag handles the mouse events. This is used by the<br>OpenLayers.Control.DragPan to actually move the map.<br><br>&gt; I&#39;m<br>&gt; especially interested in finding the code that triggers another request
<br>&gt; for a new tile or set of tiles from the server upon mouse drag.<br><br>Well, that&#39;s a totally different section of the code :) The DragPan<br>control calls setCenter on the map, which calls moveTo on the Layers,
<br>which then (sometimes) request snew tiles.<br><br>Regards,<br>--<br>Christopher Schmidt<br>MetaCarta<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>