The DragPan control pans the map with a drag of the mouse.
ALKMaps. | The DragPan control pans the map with a drag of the mouse. |
Properties | |
type | {ALKMaps.Control.TYPES} |
panned | {Boolean} The map moved. |
interval | {Integer} The number of milliseconds that should elapse before panning the map again. |
documentDrag | {Boolean} If set to true, mouse dragging will continue even if the mouse cursor leaves the map viewport. |
kinetic | {<ALKMaps.Kinetic>} The ALKMaps.Kinetic object. |
enableKinetic | {Boolean} Set this option to enable “kinetic dragging”. |
kineticInterval | {Integer} Interval in milliseconds between 2 steps in the “kinetic scrolling”. |
Functions | |
draw | Creates a Drag handler, using panMap and panMapDone as callbacks. |
panMapStart | |
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 | {ALKMaps.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 )
panMapStart: function()