[Commits] r192 - sandbox/opengeo/drake/trunk/apps/drake
commits at geoext.org
commits at geoext.org
Wed Feb 18 18:45:24 CET 2009
Author: tcoulter
Date: 2009-02-18 18:45:24 +0100 (Wed, 18 Feb 2009)
New Revision: 192
Modified:
sandbox/opengeo/drake/trunk/apps/drake/index.html
Log:
Changed this.store to this.featureStore, as we now have GeoExt.Drake-scoped wmsStore, and will soon (so it seems) have a GeoExt.Drake-scope wfsStore. This is a small refactoring for later.
Modified: sandbox/opengeo/drake/trunk/apps/drake/index.html
===================================================================
--- sandbox/opengeo/drake/trunk/apps/drake/index.html 2009-02-18 17:38:10 UTC (rev 191)
+++ sandbox/opengeo/drake/trunk/apps/drake/index.html 2009-02-18 17:45:24 UTC (rev 192)
@@ -84,7 +84,7 @@
collapseMode: "mini",
loadMask: {
msg: "Loading features...",
- store: this.store
+ store: this.featureStore
}
},
@@ -123,7 +123,7 @@
}
this.initFilter();
- this.initStore();
+ this.initFeatureStore();
this.initWMSStore();
this.initMap();
@@ -183,9 +183,9 @@
return new GeoExt.data.ProtocolProxy({protocol: proto});
},
- initStore: function() {
+ initFeatureStore: function() {
// create the data store
- this.store = new Ext.data.Store({
+ this.featureStore = new Ext.data.Store({
proxy: this.createProxy(),
remoteSort: true,
reader: new Ext.data.JsonReader({}, [])
@@ -217,10 +217,10 @@
enableToggle: true,
handler: function(checkbox, checked) {
if (checked){
- this.store.proxy.setOGCFilter(this.filterBuilder.getFilter());
+ this.featureStore.proxy.setOGCFilter(this.filterBuilder.getFilter());
this.filterBuilder.on("change", this.updateQueryFilter, this);
} else {
- this.store.proxy.setOGCFilter(null);
+ this.featureStore.proxy.setOGCFilter(null);
this.filterBuilder.un("change", this.updateQueryFilter, this);
}
this.grid.store.load({
@@ -238,13 +238,13 @@
initPagingBar: function() {
this.pagingBar = new Ext.PagingToolbar({
pageSize: 7,
- store: this.store,
+ store: this.featureStore,
displayInfo: true,
displayMsg: 'Displaying features {0} - {1} of {2}',
emptyMsg: 'No features to display'
});
- this.gridConfig.store= this.store;
+ this.gridConfig.store= this.featureStore;
this.gridConfig.title= "Feature Query Results"; // this.getFullType();
this.gridConfig.bbar= this.pagingBar;
},
@@ -260,7 +260,7 @@
});
this.wfsStoreLayer = new GeoExt.layer.Vector("Vector Layer", {
- store: this.store,
+ store: this.wfsStore,
displayInLayerSwitcher: false
}
);
@@ -581,18 +581,18 @@
this.featurePrefix = parts[0];
this.featureType = parts[1];
- this.store.proxy = this.createProxy({prefix: parts[0], type: parts[1], namespace: namespace});
- this.store.reader = new GeoExt.data.FeatureReader({}, recordize(this.fields));
+ this.featureStore.proxy = this.createProxy({prefix: parts[0], type: parts[1], namespace: namespace});
+ this.featureStore.reader = new GeoExt.data.FeatureReader({}, recordize(this.fields));
this.grid.setTitle(typename + " - " + namespace);
this.grid.colModel.setConfig(columnize(this.fields));
- this.store.load({params: {start: 0, limit: this.featuresPerPage}});
+ this.featureStore.load({params: {start: 0, limit: this.featuresPerPage}});
},
updateQueryFilter: function(builder){
- this.store.proxy.setOGCFilter(builder.getFilter());
- this.store.load({params: {start: 0, limit: this.featuresPerPage}});
+ this.featureStore.proxy.setOGCFilter(builder.getFilter());
+ this.featureStore.load({params: {start: 0, limit: this.featuresPerPage}});
}
};
More information about the Commits
mailing list