Calling Methods That the Integration with Maps and Location Method Uses
You can call methods that the Integration with Maps and Location method uses from a form applet or list applet in the following way:
Initialize the JQMMapCtrl class.
Configure Siebel Open UI so that it sends a single account address or postal code and then binds it to an event that calls the GetInlineRoute method.
Siebel Open UI comes predefined to bind the anchor control for the postal code field to a click event. Siebel Open UI displays the postal code field as an icon next to the control. It uses this configuration only for form applets.
To configure a list applet, you must also do the following work:
Prepare the account array that stores the addresses or postal codes and bind it to an event that Siebel Open UI can call from a ShowMapLocations method. Siebel Open UI comes predefined to concatenate the values of Street Address, City and State fields, and then set the nonnull values that the array contains. It does this so that it can send the array to the method.
Create a link or button that calls the method.
Siebel Open UI uses the Google-ui-map plug-in to render the Google map. This plug-in requires a div id to display the map. This div element can reside in any container. The CCViewDetailMap_Mobile Web template supports list and map rendering. It contains the following code. It uses the jqmMapCtrl div id to render the Google map:
<div od-if="Web Engine State Properties, IsMobileApplicationMode"> <div id="SiebelMapContainer" name="SiebelMapContainer" style="display:none;"> <div id="jqmMapCtrl" name="jqmMapCtrl"></div> </div> </div>