Changeset 1615
- Timestamp:
- 10/05/06 16:56:40 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Layer.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Layer.js
r1611 r1615 237 237 }, 238 238 239 /** 239 /** Set the visibility flag for the layer and hide/show&redraw accordingly. 240 * Fire event unless otherwise specified 241 * 242 * Note that visibility is no longer simply whether or not the layer's 243 * style.display is set to "block". Now we store a 'visibility' state 244 * property on the layer class, this allows us to remember whether or not 245 * we *desire* for a layer to be visible. In the case where the map's 246 * resolution is out of the layer's range, this desire may be subverted. 247 * 240 248 * @param {Boolean} visible Whether or not to display the layer 241 249 * (if in range) … … 245 253 if (visibility != this.visibility) { 246 254 this.visibility = visibility; 255 this.display(visibility); 247 256 if (this.map != null) { 248 257 var extent = this.map.getExtent(); … … 258 267 }, 259 268 260 /** 269 /** Hide or show the Layer 270 * 261 271 * @param {Boolean} display 262 272 */
