[Commits] r413 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Fri Apr 17 22:48:22 CEST 2009
Author: tschaub
Date: 2009-04-17 22:48:22 +0200 (Fri, 17 Apr 2009)
New Revision: 413
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
configure getfeatureinfo control with url from first layer in capabilities
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-17 20:25:43 UTC (rev 412)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-17 20:48:22 UTC (rev 413)
@@ -522,6 +522,15 @@
scope: this
}
});
+ this.on({
+ ready: function() {
+ var record = this.capabilities.getAt(0);
+ if(record) {
+ infoControl.layerUrls = [record.get("layer").url]
+ }
+ },
+ scope: this
+ });
this.map.addControl(infoControl);
// create length measure control
More information about the Commits
mailing list