The DragPan control pans the map with a drag of the mouse.
OpenLayers. | The DragPan control pans the map with a drag of the mouse. |
Properties | |
type | {OpenLayers.Control.TYPES} |
panned | {Boolean} The map moved. |
interval | {Integer} The number of milliseconds that should ellapse before panning the map again. |
Functions | |
draw | Creates a Drag handler, using panMap and panMapDone as callbacks. |
panMap | |
panMapDone | Finish the panning operation. |
draw: function()
Creates a Drag handler, using panMap and panMapDone as callbacks.
panMapDone: function( xy )
Finish the panning operation. Only call setCenter (through panMap) if the map has actually been moved.
xy | {OpenLayers.Pixel} Pixel of the mouse position |
Creates a Drag handler, using panMap and panMapDone as callbacks.
draw: function()
panMap: function( xy )
Finish the panning operation.
panMapDone: function( xy )