[OpenLayers-Users] Restore feature's geometry
Alexandre Dube
adube at mapgears.com
Wed Jul 29 13:40:10 EDT 2009
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
'restore' the feature to its original state (at least the geometry).
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.
I also tried to clone the geometry only but I had weird behaviors
(duplicated features).
Any hint ?
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list