[OpenLayers-Users] what part of the API handles mouse drag
panning?
Christopher Schmidt
crschmidt at metacarta.com
Thu Oct 4 11:45:52 EDT 2007
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
More information about the Users
mailing list