[Commits] r177 - sandbox/opengeo/drake/trunk/apps/drake

commits at geoext.org commits at geoext.org
Tue Feb 17 20:01:38 CET 2009


Author: tcoulter
Date: 2009-02-17 20:01:38 +0100 (Tue, 17 Feb 2009)
New Revision: 177

Modified:
   sandbox/opengeo/drake/trunk/apps/drake/index.html
Log:
Added in some cheap configuration. TODO: FIXME: BIGDIRTYHACK: We should probably do some javadocs for what's expected.

Modified: sandbox/opengeo/drake/trunk/apps/drake/index.html
===================================================================
--- sandbox/opengeo/drake/trunk/apps/drake/index.html	2009-02-17 18:38:20 UTC (rev 176)
+++ sandbox/opengeo/drake/trunk/apps/drake/index.html	2009-02-17 19:01:38 UTC (rev 177)
@@ -75,8 +75,7 @@
         grid: null,
         proxy: null,
         
-        featurePrefix: "topp",
-        featureType: "states",
+        
         gridConfig: {
                 stripeRows: true,
                 height:230,
@@ -93,14 +92,12 @@
         store: null,
         fields: null,
         
-        geoserverUrl: "/geoserver",
-        wmsUrl: "/geoserver/wms",
-        wfsUrl: "/geoserver/wfs",
-        
         map: null,
         wfsStoreLayer: null,
         
-        load: function() {
+        load: function(config) {
+            OpenLayers.Util.extend(this, config);
+            
             // Show the error window on network failures.
             GeoExt.RequestMgr.on("requestexception", function(request, url) {
                 var errorWindow = new GeoExt.ErrorWindow({
@@ -572,7 +569,14 @@
     };
 
     Ext.onReady(function() {
-        GeoExt.Drake.load();
+        GeoExt.Drake.load({
+            featurePrefix: "topp",
+            featureType: "states",
+            
+            geoserverUrl: "/geoserver",
+            wmsUrl: "/geoserver/wms",
+            wfsUrl: "/geoserver/wfs"
+        });
     });
 
     </script>



More information about the Commits mailing list