Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a problem where when editing features from a wfs vector layer. After some changes are made to the geometry, the feature redraws itself and the changes are lost.

Usually the problem occurs more often if a feature is huge and has many vertices. Also if the user pans and zooms in/out a lot.

My guess is that the browser (FireFox 18) "looses the cache" or something and therefore does a new request to the server and the feature is rendered and the changes are lost.

Is there a way to solve this or is the solution to "save often"?

Br

Mike

share|improve this question
    
related: gis.stackexchange.com/questions/35597/… –  Mapperz Feb 5 '13 at 15:23
    
Hi Mapperz and thanks for the reply I'm not quite sure that I understand what you mean in how the answer in the other question would help me. I have features that are polygons. And the problem occurs when Im modifying one of them. I could try to have a extra wfs layer only for the feature that the user currently is editing. But my guess is that won't help if that only feature is complex enough. Or am I missing your point? –  Mike001 Feb 5 '13 at 15:59

1 Answer 1

up vote 1 down vote accepted

I assume this happens when your vector data is retrieved using an OpenLayers.Strategy.BBOX. A workaround would be to either use a different strategy (e.g. OpenLayers.Strategy.Fixed), or to configure the BBOX strategy with a higher ratio.

share|improve this answer
    
Hi ahocevar and thank you very much for the reply and answer! You are correct I'm using the BBOX strategy but by raising the ratio the problem dissapear. I guess the down side of this is that more features than needed are retreived, but thats not an issue in this case (for now at least). Br Mike –  Mike001 Feb 7 '13 at 12:37

Your Answer

 
discard

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.