[Commits] r223 - sandbox/opengeo/alachua/lib/GeoExt/data

commits at geoext.org commits at geoext.org
Fri Mar 13 20:03:49 CET 2009


Author: sbenthall
Date: 2009-03-13 20:03:49 +0100 (Fri, 13 Mar 2009)
New Revision: 223

Modified:
   sandbox/opengeo/alachua/lib/GeoExt/data/FeatureStore.js
Log:
createLayer method on FeatureStore


Modified: sandbox/opengeo/alachua/lib/GeoExt/data/FeatureStore.js
===================================================================
--- sandbox/opengeo/alachua/lib/GeoExt/data/FeatureStore.js	2009-03-13 18:58:51 UTC (rev 222)
+++ sandbox/opengeo/alachua/lib/GeoExt/data/FeatureStore.js	2009-03-13 19:03:49 UTC (rev 223)
@@ -113,4 +113,18 @@
             this.mediators[layer.id].deactivate();
         }
     }
+
+    /**
+     * Method: createLayer
+     * Creates a bound Vector layer from this this store, for
+     * consumption by, for example, a MapPanel
+     *
+     */
+
+    createLayer: function(){
+        var layer = new OpenLayers.Layer.Vector();
+        this.bind(layer);
+        return layer;
+    }
+
 });



More information about the Commits mailing list