diff --git a/lib/OpenLayers/Popup.js b/lib/OpenLayers/Popup.js index c6cec37d30..2081630d9d 100644 --- a/lib/OpenLayers/Popup.js +++ b/lib/OpenLayers/Popup.js @@ -122,6 +122,35 @@ OpenLayers.Popup.prototype = { } }, + /** + * @returns Boolean indicating whether or not the popup is visible + * @type Boolean + */ + visible: function() { + return Element.visible(this.div); + }, + + /** + * + */ + toggle: function() { + Element.toggle(this.div); + } + + /** + * + */ + show: function() { + Element.show(this.div); + }, + + /** + * + */ + hide: function() { + Element.hide(this.div); + }, + /** * @param {OpenLayers.Size} size */