OpenLayers.Control.PanZoom - OpenLayers

# OpenLayers. Control. PanZoom

#### Inherits from

- OpenLayers.Control

Summary

OpenLayers. Control. PanZoom |
Properties |
slideFactor | {Integer} Number of pixels by which we’ll pan the map in any direction on clicking the arrow buttons.
buttons | {Array(DOMElement)} Array of Button Divs
position | {OpenLayers.Pixel}
Constructor |
OpenLayers. Control. PanZoom |
Functions |
destroy |
draw |
_addButton |
doubleClick |
buttonDown |
Constants |
X | {Integer}
Y | {Integer}

### Properties

### slideFactor

{Integer} Number of pixels by which we’ll pan the map in any direction on clicking the arrow buttons.

### buttons

{Array(DOMElement)} Array of Button Divs

### position

{OpenLayers.Pixel}

### Constructor

### OpenLayers. Control. PanZoom

#### Parameters

options | {Object}

### Functions

### destroy

> destroy: function()

### draw

> draw: function( | px | )

#### Parameters

px | {OpenLayers.Pixel}

#### Returns

{DOMElement} A reference to the container div for the PanZoom control.

### _addButton

> _addButton:function( | id,
> | img,
> | xy,
> | sz | )

#### Parameters

id | {String}
img | {String}
xy | {OpenLayers.Pixel}
sz | {OpenLayers.Size}

#### Returns

{DOMElement} A Div (an alphaImageDiv, to be precise) that contains the image of the button, and has all the proper event handlers set.

### doubleClick

> doubleClick: function ( | evt | )

#### Parameters

evt | {Event}

#### Returns

{Boolean}

### buttonDown

> buttonDown: function ( | evt | )

#### Parameters

evt | {Event}

### Constants

### X

{Integer}

### Y

{Integer}

This class represents a screen coordinate, in x and y coordinates

> destroy: function()

> draw: function( | px | )

> _addButton:function( | id,
> | img,
> | xy,
> | sz | )

> doubleClick: function ( | evt | )

> buttonDown: function ( | evt | )

Controls affect the display or behavior of the map.
Instances of this class represent a width/height pair
Close