CREATE_CLICK
The parameter activetools=CREATE_CLICK will display the create tool via clickmode.
Create via clickmode in WebOffice map widget
By activating the create tool, an edit toolbar will appear in the WebOffice map widget. By clicking to a new position in the map and using the Plus button, base points for the features can be set. By using the check button the feature will be created. This option is optimized for creating features on mobile devices via a stylus.
The following parameters are needed in order to create features in WebOffice map widget via cross hair:
Parameter |
Description |
---|---|
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. |
callback_createpoint (optional) |
Specifies a JavaScript callback function. |
snap (optional) |
If snap layer for the edit layer are configured, snapping can be activated by using snap=true. Note: The snapping tolerance can be configured in Snap Layers. If more than one snap points are within the snapping tolerance, the closest one will be taken into consideration and will be marked in orange. |
startmode=CREATE_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_createpoint=parent.createpointResult&editlayerid=edit_areas_red&editkeyfield=ID&editkeyvalue=1&activetools=CREATE_CLICK&snap=true