git-svn-id: http://svn.openlayers.org/trunk/openlayers@77 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
41 lines
759 B
JavaScript
41 lines
759 B
JavaScript
/**
|
|
* @class
|
|
*/
|
|
OpenLayers.Control = Class.create();
|
|
OpenLayers.Control.prototype = {
|
|
|
|
/** this gets set in the addControl() function in OpenLayers.Map
|
|
* @type OpenLayers.Map */
|
|
map: null,
|
|
|
|
/** @type DOMElement */
|
|
div: null,
|
|
|
|
/**
|
|
* @constructor
|
|
*/
|
|
initialize: function () {
|
|
},
|
|
|
|
/**
|
|
* @returns A reference to the DIV DOMElement containing the control
|
|
* @type DOMElement
|
|
*/
|
|
draw: function () {
|
|
if (this.div == null) {
|
|
this.div = OpenLayers.Util.createDiv();
|
|
}
|
|
return this.div;
|
|
},
|
|
|
|
/**
|
|
*/
|
|
destroy: function () {
|
|
// eliminate circular references
|
|
this.map = null;
|
|
},
|
|
|
|
/** @type String */
|
|
CLASS_NAME: "OpenLayers.Control"
|
|
};
|