controls - openlayers refresh only feature, undo dragging -
im working on solution drag features. after drag created window ask users if want let feature on position or put on original location? there current solution:
first of coordinates(left, bottom, right, top) original position of feature. drag feature , place it. in moment coordinates of new position. if dont want place here , put on original location, add original coordinates feature. , here problem. coordinates rewrite feature not located on original position. if use refresh method, doesnt help, because refresh method refresh whole layer, want refresh (if it's possible) current feature.
best regards
gabriel
here do:
- make copy of original feature (serialize) before dragged
- to undo dragging, deserialize original feature , load it, if worked remove dragged version
also have @ cancel method, maybe help:
Comments
Post a Comment