Navigation:  Introduction to WebOffice map widget > Supported Parameters > Callback Function Parameters >

callback_maptip_mw

Previous pageReturn to chapter overviewNext page

The parameter callback_maptip_mw specifies the name of the JavaScript method to be used as call back function for maptip results.

As a response you will get a boolean variable, which indicates whether the maptip was successful or not. Besides you will get an object containing the results.

 

The parameter's structure: MyCallbackMaptip(RESULTS, SUCCEEDED)

RESULTS: object that contains all configured fields of the MapTip configuration NULL in case no object was found.

SUCCEEDED: it is TRUE if the search operation was successful or False if it failed

 

Note: The methods name MyCallbackMaptip is just an example as well as the parameter's names.

 

Possible responses are:

Successful request containing searched features: MyCallbackMaptip(RESULTS, true)

Failed request: MyCallbackMaptip(NULL, false)

 

Example:

http://w-vpc-ts-w7-e/WebOfficeLatest/client_mapwidget/default.jsp?baseURL=http://w-vpc-ts-w7-e/WebOfficeLatest&project=WebOffice_SampleProject&width=600&height=400&combined_req=true&map_adv=true&maptransparency=0.0&mapmargin=1&activetools=MAPTIP&callback_maptip_mw=MyCallbackMaptip