Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I built an WFS-T with a grid panel (Ext.grid.EditorGridPanel) to edit features' attributes. Now, I want the feature store ( to reload/update automatically so that other users see changes committed immediately without reloading the whole webmap.

I would appreciate hints for:

  1. Attaching such an "update store" function either to my "save"-button or to my store's "afteredit"-listener
  2. Having the whole store updated continuously in an automatic way
share|improve this question

Solved! using refresh Strategy:

var refreshStrategy = new OpenLayers.Strategy.Refresh();

2.Apply strategy to WFS-Layer:
var POIs = new OpenLayers.Layer.Vector("Schneeampel", { strategies: [new OpenLayers.Strategy.Fixed(), saveStrategy, refreshStrategy], projection: WGS84, // empty style map, will be populated in setLayerStyles protocol: new OpenLayers.Protocol.WFS({...

3.Register event "refresh" in combination with event "save" in Save-Button-section:"success", null, function(){refreshStrategy.refresh()})

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.