function PanControl(map, options) {
  this._map = map;
  options = options || {};
  var domElement = document.getElementById(options.domId);
  if (!domElement) {
    domElement = document.createElement('div');
    if (options.domId) {
      domElement.id = options.domId;
    }
    map.domNode.appendChild(domElement);
  }
  this._domNode = domElement;
  this._initNode();
}
/**
 * Creates a pan control for the given map.
 *
 * The default styling can be found in PanControl.css.
 *
 * @param map  The map to create the pan control for.
 * @param options An options literal. The following options are supported:
 *        <ul>
 *          <li><b>options.domId</b> The dom ID of the DIV that is the pan control.
 *             When omitted, this div will be created for you inside the map's DOM node.
 *             When specified and an element with that ID exists, that element will be used.
 *             When specified and no element with that ID exists, that ID will be assigned to the
 *             DOM node that was created for you inside the map's DOM node.</li>
 *        </ul>
 * @constructor
 */
Creates a pan control for the given map.
The default styling can be found in PanControl.css.

@param map  The map to create the pan control for.
@param options An options literal. The following options are supported:

options.domId The dom ID of the DIV that is the pan control.
When omitted, this div will be created for you inside the map's DOM node.
When specified and an element with that ID exists, that element will be used.
When specified and no element with that ID exists, that ID will be assigned to the
DOM node that was created for you inside the map's DOM node.

@constructor
Creates a pan control for the given map . The default styling can be found in PanControl . css . @param map The map to create the pan control for . @param options An options literal . The following options are supported : options . domId The dom ID of the DIV that is the pan control . When omitted this div will be created for you inside the map ' s DOM node . When specified and an element with that ID exists that element will be used . When specified and no element with that ID exists that ID will be assigned to the DOM node that was created for you inside the map ' s DOM node . @constructor
function PanControl(map, options) {
  this._map = map;
  options = options || {};
  var domElement = document.getElementById(options.domId);
  if (!domElement) {
    domElement = document.createElement('div');
    if (options.domId) {
      domElement.id = options.domId;
    }
    map.domNode.appendChild(domElement);
  }
  this._domNode = domElement;
  this._initNode();
}
function PanControl ( map , options ) { this . _map = map ; options = options || { } ; var domElement = document . getElementById ( options . domId ) ; if ( ! domElement ) { domElement = document . createElement ( 'div' ) ; if ( options . domId ) { domElement . id = options . domId ; } map . domNode . appendChild ( domElement ) ; } this . _domNode = domElement ; this . _initNode ( ) ; }
Creates a pan control for the given map.
Creates a pan control for the given map .