OpenLayers. Control. DragPan

DragPan control.

Inherits from

Summary
DragPan control.
{OpenLayers.Control.TYPES}
{Boolean} The map moved.
Creates a Drag handler, using <OpenLayers.Control.PanMap.panMap> and <OpenLayers.Control.PanMap.panMapDone> as callbacks.
Finish the panning operation.

Properties

type

{OpenLayers.Control.TYPES}

panned

{Boolean} The map moved.

Functions

draw

draw: function()

Creates a Drag handler, using <OpenLayers.Control.PanMap.panMap> and <OpenLayers.Control.PanMap.panMapDone> as callbacks.

panMap

panMap: function(xy)

Parameters

xy{OpenLayers.Pixel} Pixel of the mouse position

panMapDone

panMapDone: function(xy)

Finish the panning operation.  Only call setCenter (through panMap) if the map has actually been moved.

Parameters

xy{OpenLayers.Pixel} Pixel of the mouse position
draw: function()
Creates a Drag handler, using OpenLayers.Control.PanMap.panMap and OpenLayers.Control.PanMap.panMapDone as callbacks.
panMap: function(xy)
panMapDone: function(xy)
Finish the panning operation.
Controls affect the display or behavior of the map.
This class represents a screen coordinate, in x and y coordinates