Changeset 351


Ignore:
Timestamp:
04/06/09 20:11:03 (9 years ago)
Author:
sbenthall
Message:
  • configuration now accepts a "visibility" configuration option on layers.

Effectively defaults to true.

  • layer visibility is captured in bookmark configuration URL
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js

    r350 r351  
    191191                    conf.title || conf.name,
    192192                    this.ows,
    193                     {layers: conf.name, transparent: true}
     193                    {
     194                        layers: conf.name,
     195                        transparent: true
     196                    },
     197                    {
     198                        visibility: ("visibility" in conf? conf.visibility : true)
     199                    }
    194200                );
    195201                conf.layer = layer;
     
    446452                       && layerRecord.get("layer").params.LAYERS)
    447453                    || layerRecord.get("name"),
    448                 queryable: layerRecord.get("queryable")
     454                queryable: layerRecord.get("queryable"),
     455                visibility: layerRecord.get("layer").getVisibility()
    449456            };
    450457
Note: See TracChangeset for help on using the changeset viewer.