git-svn-id: http://svn.openlayers.org/trunk/openlayers@7950 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
26 lines
588 B
JavaScript
26 lines
588 B
JavaScript
/**
|
|
* @requires OpenLayers/Control.js
|
|
*/
|
|
|
|
/**
|
|
* Class: OpenLayers.Control.ZoomIn
|
|
*/
|
|
OpenLayers.Control.ZoomIn = OpenLayers.Class(OpenLayers.Control, {
|
|
|
|
/**
|
|
* Property: type
|
|
* {String} The type of <OpenLayers.Control> -- When added to a
|
|
* <Control.Panel>, 'type' is used by the panel to determine how to
|
|
* handle our events.
|
|
*/
|
|
type: OpenLayers.Control.TYPE_BUTTON,
|
|
|
|
/**
|
|
* Method: trigger
|
|
*/
|
|
trigger: function(){
|
|
this.map.zoomIn();
|
|
},
|
|
|
|
CLASS_NAME: "OpenLayers.Control.ZoomIn"
|
|
}); |