1
/* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD
2
* license. See http://svn.openlayers.org/trunk/openlayers/license.txt for the
3
* full text of the license. */
6
* @requires OpenLayers/Control/Panel.js
7
* @requires OpenLayers/Control/Navigation.js
8
* @requires OpenLayers/Control/ZoomBox.js
12
* Class: OpenLayers.Control.NavToolbar
15
* - <OpenLayers.Control.Panel>
17
OpenLayers.Control.NavToolbar = OpenLayers.Class(OpenLayers.Control.Panel, {
20
* Constructor: OpenLayers.Control.NavToolbar
21
* Add our two mousedefaults controls.
24
* options - {Object} An optional object whose properties will be used
25
* to extend the control.
27
initialize: function(options) {
28
OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);
30
new OpenLayers.Control.Navigation(),
31
new OpenLayers.Control.ZoomBox()
37
* calls the default draw, and then activates mouse defaults.
40
var div = OpenLayers.Control.Panel.prototype.draw.apply(this, arguments);
41
this.activateControl(this.controls[0]);
45
CLASS_NAME: "OpenLayers.Control.NavToolbar"