There may or may not be a way to unbind/rebind a layer to a feature store. However, the unbind/bind functions are internal functions that register and unregister event listeners. However, the GeoExt pattern of doing things really expects a single layer to feature store relation. Doing otherwise is going to cause you to jump through many more hoops and monkey patch various bits of code. Grids and data views have methods to reconfigure the view with a new store, field definitions, or both. Any visualization you would be using a feature store with will able to handle switching the store much easier than changing the layer attached to the store. Matt Priour Kestrel Computer Consulting
From: Denis Rykov Sent: Friday, May 27, 2011 5:48 AM To: [email protected] Subject: [Users] FeatureStore unbinding Hi! Please help me with the following problem. Little testcase: 1) There are two layers on map (e.g., layer1 and layer2); 2) FeatureStore (store) binded to layer1; 3) After loading map try to perform: store.unbind() store.bind(layer2) Features of both layers takes layer2 style! Is it bug? What is the right way to unbin store from one layer and bind it to another? Big thanks. -------------------------------------------------------------------------------- _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
