[Commits] r351 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Mon Apr 6 20:11:03 CEST 2009
Author: sbenthall
Date: 2009-04-06 20:11:03 +0200 (Mon, 06 Apr 2009)
New Revision: 351
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
* configuration now accepts a "visibility" configuration option on layers.
Effectively defaults to true.
* layer visibility is captured in bookmark configuration URL
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-06 18:02:30 UTC (rev 350)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-06 18:11:03 UTC (rev 351)
@@ -190,7 +190,13 @@
layer = new OpenLayers.Layer.WMS(
conf.title || conf.name,
this.ows,
- {layers: conf.name, transparent: true}
+ {
+ layers: conf.name,
+ transparent: true
+ },
+ {
+ visibility: ("visibility" in conf? conf.visibility : true)
+ }
);
conf.layer = layer;
layer.events.register("visibilitychanged", this, this.updateGFILayers);
@@ -445,7 +451,8 @@
name: (layerRecord.get("layer").params
&& layerRecord.get("layer").params.LAYERS)
|| layerRecord.get("name"),
- queryable: layerRecord.get("queryable")
+ queryable: layerRecord.get("queryable"),
+ visibility: layerRecord.get("layer").getVisibility()
};
config.map.layers.push(c);
More information about the Commits
mailing list