[OpenLayers-Users] what part of the API handles mouse drag panning?

Leandro R learonco at gmail.com
Thu Oct 4 15:08:03 EDT 2007


Is there any way, such as a program, to know or determinate which control
call which control?
This is for having a better understanding about how OL works?
Thanks.



2007/10/4, Christopher Schmidt <crschmidt at metacarta.com>:
>
> On Thu, Oct 04, 2007 at 11:39:07AM -0400, Michael Quentel wrote:
> > What part of OL API would I find the code (actual class and function)
> > pertaining to panning on mouse drag (when user does mouse down on map,
> > then drags mouse, then releases mouse, causing map to pan).
>
> OpenLayers.Handler.Drag handles the mouse events. This is used by the
> OpenLayers.Control.DragPan to actually move the map.
>
> > I'm
> > especially interested in finding the code that triggers another request
> > for a new tile or set of tiles from the server upon mouse drag.
>
> Well, that's a totally different section of the code :) The DragPan
> control calls setCenter on the map, which calls moveTo on the Layers,
> which then (sometimes) request snew tiles.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071004/2d6cb25f/attachment.html


More information about the Users mailing list