2 * @requires OpenLayers/Control/Panel.js
3 * @requires OpenLayers/Control/Pan.js
7 * Class: OpenLayers.Control.PanPanel
8 * The PanPanel is visible control for panning the map North, South, East or
9 * West in small steps. By default it is drawn in the top left corner of the
13 * If you wish to use this class with the default images and you want
14 * it to look nice in ie6, you should add the following, conditionally
15 * added css stylesheet to your HTML file:
19 * <link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" />
24 * - <OpenLayers.Control.Panel>
26 OpenLayers.Control.PanPanel = OpenLayers.Class(OpenLayers.Control.Panel, {
29 * Constructor: OpenLayers.Control.PanPanel
30 * Add the four directional pan buttons.
33 * options - {Object} An optional object whose properties will be used
34 * to extend the control.
36 initialize: function(options) {
37 OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);
39 new OpenLayers.Control.Pan(OpenLayers.Control.Pan.NORTH),
40 new OpenLayers.Control.Pan(OpenLayers.Control.Pan.SOUTH),
41 new OpenLayers.Control.Pan(OpenLayers.Control.Pan.EAST),
42 new OpenLayers.Control.Pan(OpenLayers.Control.Pan.WEST)
46 CLASS_NAME: "OpenLayers.Control.PanPanel"