EDIT_CLICK
The parameter activetools=EDIT_CLICK will display the edit tool via clickmode.
Edit via clickmode in WebOffice map widget
Note:
Please consider that the WebOffice map widget only supports editing of point features. It is not possible to edit the geometry of line or polygon features.
By activating the edit tool, the WebOffice map widget will zoom to the feature to be edited. By clicking to a new position in the map, the geometry of point features can be changed for edit. The feature will be shifted to a new position by pressing the OK button. This option is optimized for editing features on mobile devices via a stylus.
The following parameters are needed in order to edit features in WebOffice map widget via cross hair:
Parameter |
Description |
---|---|
query_movepoint_mw |
External layer ID on the WebOffice 10.9 R4 query layer, to find the feature to be edited. Note: The layer must be identifyable/selectable. |
editlayerid |
External layer ID on the WebOffice 10.9 R4 edit layer |
editkeyfield |
Identifies the key attribute of the feature to be created. Note: The key name is the technical field name (not the alias name) and must be configured as Edit Field. |
editkeyvalue |
Identifies the key value of the feature to be created. Note: The value must be escaped correctly. |
editfields (optional) |
Identifies additional attributes of the feature to be created. Note: The editfields name is the technical field name (not the alias name) and must be configured as Edit Field. |
editvalues (optional) |
Identifies additional edit values of the feature to be created. Note: The value must be escaped correctly. Note: Please use the value nullvallue or syndbvoid when editing empty values, further details see Editing in Service API. |
returnkey_movepoint_mw (optional) |
Specifies the field to be returned in the response. Note: It is possible to select more return keys by using the Ctrl key on the keyboard. |
callback_movepoint_mw (optional) |
Specifies a JavaScript callback function. |
startmode=EDIT_CLICK(optional) |
By checking this parameter the tool will initially be activated after refreshing the WebOffice map widget. Note: The parameter startmode can only be used with one single tool. |
Example:
http://w-ws-schmoelz/WebOffice104/client_mapwidget/default.jsp?baseURL=http://w-ws-schmoelz/WebOffice104&project=World&width=385&height=377&view=edit&combined_req=true&map_adv=true&callback_movepoint_mw=parent.movepointResult&query_movepoint_mw=query_points_red&returnkey_movepoint_mw=ID&editlayerid=edit_points_red&editkeyfield=ID&editkeyvalue=002&activetools=EDIT_CLICK