Opened 13 years ago

Closed 13 years ago

#286 closed task (fixed)

EditFeature_Drag and EditFeature_Copy - new widgets

Reported by: adube Owned by:
Priority: major Milestone:
Component: widgets Version:
Keywords: Cc:

Description

Create a new editing widget for dragging and copy/paste purpose.

Featuring :

  • a 'copy' boolean option :
    • true : on select, should make a copy of the feature in INSERT mode
    • false : should select it in UPDATE mode
  • use of an OpenLayers.Control.ModifyFeature with dragging option enabled
  • on drag complete, open feature_panel OR simple "done ?" popup to delegate the editing to an external editfeature_update widget
  • allow positioning of copies created with an offset (in pixels)

Change History (4)

comment:1 by adube, 13 years ago

The widget should be able to "create" and "update", but for simplicity purpose its action could be "create" only.

comment:2 by adube, 13 years ago

Its PGSQLMapContextConfig resource option required will be 'editable'.

comment:3 by adube, 13 years ago

The 'copy' option would add lots of complexity in the code and in the config as well, and since both tasks could be easily handled separately, it would be best to have 2 widgets instead of one : editfeature_drag and editfeature_copy.

comment:4 by adube, 13 years ago

Resolution: fixed
Status: newclosed
Summary: EditFeature_Drag - new widgetEditFeature_Drag and EditFeature_Copy - new widgets

r1130, featuring the two new widgets.

  • editfeature_drag
    • 'featureserver' service type only
    • 'update' action
    • can delegate to an editfeature_update on dragging complete
    • supported by all config drivers
  • editfeature_copy
    • 'featureserver' service type only
    • 'create' action
    • can delegate to an editfeature_update on dragging complete
    • 'offset' option to move the copy away from the original
    • supported by all config drivers
  • editfeature_create and update widgets now named : objGPWidget + widget name + resource name. featurepanel_form ajusted accordingly.
  • featurepanel_form : now parse attributes with INSERT state since they can now be copied
  • featurepanel_form : setWindowPosition no longer working. windowoffset option removed.
Note: See TracTickets for help on using tickets.