From 3ece5e35fd810aa23f8597fccb6cba2c1668048b Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 24 May 2006 23:14:34 +0000 Subject: [PATCH] adding skeleton for anchored popup git-svn-id: http://svn.openlayers.org/trunk/openlayers@333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Popup/Anchored.js | 46 ++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 lib/OpenLayers/Popup/Anchored.js diff --git a/lib/OpenLayers/Popup/Anchored.js b/lib/OpenLayers/Popup/Anchored.js new file mode 100644 index 0000000000..aabc2bf825 --- /dev/null +++ b/lib/OpenLayers/Popup/Anchored.js @@ -0,0 +1,46 @@ +// @require: OpenLayers/Util.js + +/** +* @class +*/ +OpenLayers.Popup.Anchored = Class.create(); +OpenLayers.Popup.Anchored.prototype = + Object.extend( new OpenLayers.Popup(), { + + /** + * @constructor + * + * @param {String} id + * @param {OpenLayers.LonLat} lonlat + * @param {OpenLayers.Size} size + * @param {String} contentHTML + */ + initialize:function(id, lonlat, size, contentHTML) { + OpenLayers.Popup.prototype.initialize.apply(this, arguments); + }, + + /** + */ + destroy: function() { + OpenLayers.Popup.prototype.destroy.apply(this, arguments); + }, + + /** + * @param {OpenLayers.Pixel} px + * + * @returns Reference to a div that contains the drawn popup + * @type DOMElement + */ + draw: function(px) { + OpenLayers.Popup.prototype.draw.apply(this, arguments); + }, + + /** + * @param {OpenLayers.Pixel} px + */ + moveTo: function(px) { + OpenLayers.Popup.prototype.moveTo.apply(this, arguments); + }, + + CLASS_NAME: "OpenLayers.Popup.Anchored" +});