[Commits] r406 - apps/opengeo/geoexplorer/trunk/lib

commits at geoext.org commits at geoext.org
Fri Apr 17 02:01:56 CEST 2009


Author: tschaub
Date: 2009-04-17 02:01:53 +0200 (Fri, 17 Apr 2009)
New Revision: 406

Modified:
   apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
Update to use new signature for WMSGetFeatureInfo control.

Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-04-16 23:10:56 UTC (rev 405)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-04-17 00:01:53 UTC (rev 406)
@@ -506,15 +506,14 @@
         this.map.addControl(historyControl);
         
         // create a get feature info control
-        var infoControl = new OpenLayers.Control.WMSGetFeatureInfo(
-            this.initialConfig.ows, {
-                queryVisible: true,
-                eventListeners: {
-                    getfeatureinfo:  this.displayPopup,
-                    scope: this
-                }
+        var infoControl = new OpenLayers.Control.WMSGetFeatureInfo({
+            url: this.initialConfig.ows,
+            queryVisible: true,
+            eventListeners: {
+                getfeatureinfo:  this.displayPopup,
+                scope: this
             }
-        );
+        });
         this.map.addControl(infoControl);
         
         // create length measure control



More information about the Commits mailing list