[Commits] r295 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Mon Mar 30 23:43:22 CEST 2009
Author: dwins
Date: 2009-03-30 23:43:22 +0200 (Mon, 30 Mar 2009)
New Revision: 295
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
Update GeoExplorer to new WMSGetFeatureInfo API
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-03-30 20:44:40 UTC (rev 294)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-03-30 21:43:22 UTC (rev 295)
@@ -245,14 +245,14 @@
},
updateGFILayers: function() {
- var layernames = [];
+ var layers = [];
for (var i = 0, len = this.map.layers.length; i < len; i++) {
if (this.map.layers[i].params && this.map.layers[i].getVisibility()) {
- layernames.push(this.map.layers[i].params.LAYERS);
+ layers.push(this.map.layers[i]);
}
}
- this.mapControls.getFeatureInfo.layers = layernames.join(",");
+ this.mapControls.getFeatureInfo.layers = layers;
},
displayPopup: function(evt){
More information about the Commits
mailing list