allow layers to prevent themselves from displaying in the layer switcher via the 'displayInLayerSwitcher' boolean option. modify example.html to show usage

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1528 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-10-02 23:24:02 +00:00
parent 41f619b05e
commit 36a76054a4
3 changed files with 51 additions and 43 deletions

View File

@@ -36,6 +36,11 @@ OpenLayers.Layer.prototype = {
* @type boolean */
alpha: false,
/** should the layer's name appear in the layer switcher?
*
* @type boolean */
displayInLayerSwitcher: true,
// OPTIONS
/** @type Array */