[OpenLayers-Users] what part of the API handles mouse drag
panning?
Tim Schaub
tschaub at openplans.org
Thu Oct 4 15:48:07 EDT 2007
Hello-
Leandro R wrote:
> 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.
>
A recommendation:
1) use Firefox
2) get Firebug
3) open Firebug in a new window
4) go to the Script tag, locate some code you recognize (that you
understand in terms of execution order), and place a breakpoint
5) reload your page and step through the code
Tim
>
>
> 2007/10/4, Christopher Schmidt < crschmidt at metacarta.com
> <mailto: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 <mailto:Users at openlayers.org>
> http://openlayers.org/mailman/listinfo/users
>
>
> !DSPAM:4033,47053a2971285210051143!
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
> !DSPAM:4033,47053a2971285210051143!
More information about the Users
mailing list