[Commits] r285 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Thu Mar 26 22:51:06 CET 2009
Author: tschaub
Date: 2009-03-26 22:51:06 +0100 (Thu, 26 Mar 2009)
New Revision: 285
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
doc queryable config
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-03-26 21:45:45 UTC (rev 284)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-03-26 21:51:06 UTC (rev 285)
@@ -21,6 +21,7 @@
* Valid layer config properties:
* name - {String} Required WMS layer name.
* title - {String} Optional title to display for layer.
+ * queryable - {Boolean} Layer may be queried (with GetFeatureInfo)
*
* Extends:
* - Ext.util.Observable
@@ -180,23 +181,21 @@
new GeoExt.data.LayerRecord({layer: dummy}, dummy.id)
];
- if(mapConfig) {
- if(mapConfig.layers) {
- var conf, layer;
- for(var i=0, len=mapConfig.layers.length; i<len; ++i) {
- conf = Ext.apply({}, mapConfig.layers[i]);
- layer = new OpenLayers.Layer.WMS(
- conf.title || conf.name,
- ows,
- {layers: conf.name},
- {isBaseLayer: false}
- );
- conf.layer = layer;
- // we could extend the record type with conf fields here
- records.push(new GeoExt.data.LayerRecord(
- conf, layer.id
- ));
- }
+ if(mapConfig && mapConfig.layers) {
+ var conf, layer;
+ for(var i=0, len=mapConfig.layers.length; i<len; ++i) {
+ conf = Ext.apply({}, mapConfig.layers[i]);
+ layer = new OpenLayers.Layer.WMS(
+ conf.title || conf.name,
+ ows,
+ {layers: conf.name},
+ {isBaseLayer: false}
+ );
+ conf.layer = layer;
+ // we could extend the record type with conf fields here
+ records.push(new GeoExt.data.LayerRecord(
+ conf, layer.id
+ ));
}
}
this.layers.add(records);
More information about the Commits
mailing list