-
Notifications
You must be signed in to change notification settings - Fork 106
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
Comments
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. |
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. |
Hi, The synchronization fails when editing, even with the GeoJSON layer. Regards, 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", |
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.
The text was updated successfully, but these errors were encountered: