Re: [OpenLayers-Users] Restore feature's geometry

2009-07-30 Thread Alexandre Dube
Alexandre Dube wrote: Hi Eric, Eric Lemoine wrote: I tried to clone the feature + fid before modifications, then on cancel destroy the original feature and add the clone but it's obviously wrong to do so since it becomes unbound to its source. What do you mean by becomes

[OpenLayers-Users] Restore feature's geometry

2009-07-29 Thread Alexandre Dube
Hi, I'd like to know if there's a better (faster) way to restore a modified feature's geometry other than using layer.refresh({'force':true}); I use a ModifyFeature control with a popup that as save and cancel buttons. On save, it commits the changes (fine). On cancel, it should

Re: [OpenLayers-Users] Restore feature's geometry

2009-07-29 Thread Alexandre Dube
Well, in the end I would really like to avoid the use of layer.refresh({'force':true}) if possible. If you activate the DrawFeature control while modifying a feature (instead of hitting cancel), the geometry of the current modified feature still needs to be restored (didn't hit the save

Re: [OpenLayers-Users] Restore feature's geometry

2009-07-29 Thread Alexandre Dube
Hey, Alexandre Dube wrote: Well, in the end I would really like to avoid the use of layer.refresh({'force':true}) if possible. If you activate the DrawFeature control while modifying a feature (instead of hitting cancel), the geometry of the current modified feature still needs to be