Navigation:  Introduction to WebOffice map widget > Request Examples >

Combined Requests (query and identify)

Previous pageReturn to chapter overviewNext page

It may be necessary to define combined requests to (e.g.) enable a query as well as the ability to identify objects.

For example: To navigate to a geocoded adress (Geolocator) first and then identify objects (different layer) in this map extent.

 

Therefore the WebOffice map widget needs a unique assignment of the parameters needed for querying and identifying. WebOffice map widget has to provide the parameters query_identify_mw and returnkey_identify_mw at the SynServiceServlet, when identifying an object..

 

Following parameters, as well as all parameters to display a map, are necessary to create this combined request:

Category

Parameter

 

Tools

activetools=Identify

mandatory

 

combined_req=true

mandatory

Query (Geolocator)

query

mandatory

keyvalue

Identify object

callback_identify_sl

mandatory

query_identify_mw

returnkey_identify_mw

 

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_identify_mw and returnkey_identify_mw will be the information for the identify 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&maptransparency=1.0&scale=1000000&activetools=IDENTIFY&query_identify_mw=othercities&returnkey_identify_mw=CITY_NAME&callback_identify_sl=parent.identifyResult&query=Geolocator&keyvalue=Technologiestraße 10, Wien