Files
openlayers/lib/OpenLayers/Control.js
euzuro a9a24c291c JSDOC, coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@76 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:25:15 +00:00

40 lines
692 B
JavaScript

/**
* @class
*/
OpenLayers.Control = Class.create();
OpenLayers.Control.prototype = {
/** @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"
};