function ZoomControl(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(!!options.touch);
}
/**
 * Creates a zoom control for the given map.
 * It consists of a single div that contains 2 buttons :
 * a plus to zoom in and a minus to zoom out.
 *
 * The default styling can be found in ZoomControl.css.
 *
 * @param map  The map to create the zoom 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 zoom 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>
 *          <li><b>options.touch</b> If the zoom control should be used with a touch screen.</li>
 *        </ul>
 * @constructor
 */
Creates a zoom control for the given map.
It consists of a single div that contains 2 buttons :
a plus to zoom in and a minus to zoom out.

The default styling can be found in ZoomControl.css.

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

options.domId The dom ID of the DIV that is the zoom 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.
options.touch If the zoom control should be used with a touch screen.

@constructor
Creates a zoom control for the given map . It consists of a single div that contains 2 buttons : a plus to zoom in and a minus to zoom out . The default styling can be found in ZoomControl . css . @param map The map to create the zoom control for . @param options An options literal . The following options are supported : options . domId The dom ID of the DIV that is the zoom 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 . options . touch If the zoom control should be used with a touch screen . @constructor
function ZoomControl(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(!!options.touch);
}
function ZoomControl ( 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 ( ! ! options . touch ) ; }
Creates a zoom control for the given map.
Creates a zoom control for the given map .