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
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
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
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