Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: GeoExt.data.FeatureStore in Synchronizing FeatoreStore with Vector Layer #162

Open
Shadin opened this issue Oct 1, 2012 · 3 comments

Comments

@Shadin
Copy link

Shadin commented Oct 1, 2012

There is something wrong in GeoExt.data.FeatureStore ,

I followed this example to load WFS vector features into a grid.
http://geoext.github.com/geoext2/examples/grid/feature-grid.html

It works once, then fails many times, then suddenly works once again ... and so on.

@marcjansen
Copy link
Member

Hi @Shadin , sorry for being so late.

Could you provide some details about what is going wrong?

A complete failing example including the HTML would be super helpful.

Thanks.

@jgrocha
Copy link

jgrocha commented Jul 22, 2013

Hi Mark, hi Shadin,

I've just changed the vecLayer to get data from a WFS. Using a BBOX strategy works great, but soon as the user starts editing, the features disappears from the map (but not from the grid). Zoom out to see the features again, but there is something wrong with the synchronization.
I'm sending the link to a working example where the synchronization apparently does not work.
https://dl.dropboxusercontent.com/u/5489125/feature-grid-wfs.tgz
Comments are welcome.
Thanks,
Jorge

@jgrocha
Copy link

jgrocha commented Jul 23, 2013

Hi,

The synchronization fails when editing, even with the GeoJSON layer.
To replicate the problem, just add an insert control and soon as the user enter a new feature, the synchronization is lost.

Regards,
Jorge

diff --git a/examples/grid/feature-grid.js b/examples/grid/feature-grid.js
index b2186ac..d6686d4 100644
--- a/examples/grid/feature-grid.js
+++ b/examples/grid/feature-grid.js
@@ -69,6 +69,17 @@
         });
         map.addLayers([wmsLayer, vecLayer]);

+       var insertControl = new OpenLayers.Control.DrawFeature(vecLayer, OpenLayers.Handler.Point, {
+           'displayClass' : 'olControlDrawFeaturePoint'
+       });
+       var panelControls = [insertControl];
+       var toolbar = new OpenLayers.Control.Panel({
+           displayClass : 'customEditingToolbar',
+           defaultControl : panelControls[0]
+       });
+       toolbar.addControls([insertControl]);
+       map.addControl(toolbar);
+       
         // create map panel
         mapPanel = Ext.create('GeoExt.panel.Map', {
             title: "Map",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants