The parameter callback_search_mw specifies the name of the JavaScript method to be used as call back function for single layer query results.
As a response you will get a boolean variable, which indicates whether the query was successful or not. Besides you will get an object containing the searched objects.
This callback function can be implemented in a Layer Query as well as in a Geolocator Query.
The parameter's structure: MyCallbackSearch(FEATURES, X, Y, SUCCEEDED, KEYVALUE, SCALES, COORDSYS)
FEATURES: The values of the searched object or NULL in case no object was found
X: Center point x coordinate or NULL in case no object was found
Y: Center point y coordinate or NULL in case no object was found
SUCCEEDED: it's TRUE if the search operation was successful or False if it failed
KEYVALUE: The keyvalue (search value) of the searched object
SCALES: Defines a list of the configured scales or NULL in case no scales are configured.
COORDSYS: Defines the coordinate system of the main map service. The coordinate system includes the epsg code (if available), the name of the coordinate system and its custom projection string (WKT). Consider that the custom projection string might have a length of about 700 characters.
Note: The methods name MyCallbackSearch is just an example as well as the parameter's names.
Possible responses are:
Successful request containing searched features: MyCallbackSearch(FEATURES, X, Y, true, KEYVALUE)
Successful request without searched features: MyCallbackSearch(NULL, X, Y, true, NULL)
Failed request: MyCallbackSearch(NULL, NULL, NULL, false, NULL)
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&maptransparency=1.0&query=NCC&keyvalue=VIENNA&keyname=CITY_NAME&returnkey=CITY_NAME&callback_search_mw=searchResult