git-svn-id: http://svn.openlayers.org/trunk/openlayers@38 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-16 17:26:53 +00:00
parent 27f2842519
commit 39622d5676
+9 -2
View File
@@ -1,10 +1,11 @@
OpenLayers.Layer = Class.create();
OpenLayers.Layer.prototype = {
// str: name
// str
name: null,
// DOMElement: div
// DOMElement
div: null,
// OpenLayers.Map
@@ -37,10 +38,16 @@ OpenLayers.Layer.prototype = {
return;
},
/**
* @return {bool}
*/
getVisibility: function() {
return (this.div.style.display != "none");
},
/**
* @param {bool} visible
*/
setVisibility: function(visible) {
this.div.style.display = (visible) ? "block" : "none";
}