[Commits] r2199 - sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets
commits at geoext.org
commits at geoext.org
Wed May 19 08:39:22 CEST 2010
Author: pgiraud
Date: 2010-05-19 08:39:22 +0200 (Wed, 19 May 2010)
New Revision: 2199
Modified:
sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js
Log:
adds a layerOptions config parameter
Modified: sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js 2010-05-18 19:53:17 UTC (rev 2198)
+++ sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js 2010-05-19 06:39:22 UTC (rev 2199)
@@ -54,6 +54,12 @@
'height': 200
},
+ /** api: config[layerOptions]
+ * ``Object`` optional object passed as default options
+ * ``OpenLayers.Layer.WMS`` constructor
+ */
+ layerOptions: null,
+
zoomOnLayerAdded: false,
closeOnLayerAdded: false,
@@ -67,6 +73,7 @@
constructor: function(config) {
this.serverStore = config.serverStore || null;
this.gridPanelOptions = config.gridPanelOptions || this.gridPanelOptions;
+ this.layerOptions = config.layerOptions || this.layerOptions;
OpenLayers.Util.applyDefaults(
this.capabilitiesParams, this.defaultCapabilitiesParams);
@@ -213,7 +220,7 @@
};
// WMSCapabilitiesStore on blank url on start
- this.capStore = new GeoExt.data.WMSCapabilitiesStore({'url': ""});
+ this.capStore = new GeoExt.data.WMSCapabilitiesStore({'url': "", layerOptions: this.layerOptions});
this.capStore.on('load', this.onWMSCapabilitiesStoreLoad, this);
oCenterPanel.items.push(this.createGridPanel(this.capStore));
More information about the Commits
mailing list