It may be necessary to define combined requests to (e.g.) enable a query as well as the ability to create or/and move objects.
For example: To navigate to a geocoded adress (Geolocator) first and then create objects (of a different layer) in this map extent.
Therefore the WebOffice map widget needs a unique assignment of the parameters needed for querying and creating/moving objects.
Following parameters, as well as all parameters to display a map, are necessary to create this combined request:
Category |
Parameter |
|
Tools |
activetools=CREATEPOINT%20MOVEPOINT |
mandatory |
|
combined_req=true |
mandatory |
Query (Geolocator) |
mandatory |
|
create object |
editlayerid |
mandatory |
returnkey_createpoint_mw |
||
editkeyfield |
||
editkeyvalue |
||
callback_createpoint |
optional |
|
move point |
returnkey_movepoint_mw |
mandatory |
query_movepoint_mw |
||
callback_movepoint_mw |
optional |
Note: The parameter combined_req=true indicates whether it's a combined request or not. If this parameter is set, the information given back from the parameters query_createpoint_mw and returnkey_createpoint_mw will be the information for the moving process.
If the parameter combined_req=true is set, but one of the other parameters are missing an error message will appear as well as the Identify Tool won't be displayed in the widget.
Example:
http://w-vpc-kr-w7-e:8080/WO_10R3_SP2_latestBuild/client_mapwidget/default.jsp?baseURL=http://w-vpc-kr-w7-e:8080/WO_10R3_SP2_latestBuild&project=WebOffice_SampleProject_Doku&width=600&height=400&view=Edit&mapmargin=1&combined_req=true&activetools=MOVEPOINT%20CREATEPOINT&callback_movePoint_mw=movePointResult&query_movepoint_mw=othercities&returnkey_movepoint_mw=CITY_NAME&editlayerid=cities&editkeyfield=CITY_NAME&editkeyvalue=testpoint&callback_createpoint=createPointResult&query=Geolocator&keyvalue=Technologiestraße 10, Wien