Flow That the ShowMapLocations Method Uses

The ShowMapLocations method uses the following flow:

  1. Calls the LoadAPI method that loads the Google map method. The Google map method is not downloadable, so Siebel Open UI loads it when it initializes the JQMMapCtrl class and provides the LoadMap.

  2. Calls the LoadAcctsMap method, which does the following work:

    1. Gets the current geocode of the client device.

    2. Gets the address of the location so that it can display this address in the Info Window.

    3. Creates the Google map in the div element. It uses the div element that it created in the Web template. It used the google-ui-map plug-in to create this element.

    4. Starts an instance of the Geocoder service.

    5. Does the following work for each address that the AcctArray method includes:

      • Gets the geocode of the address.

      • Sets the marker Position according to the geocode.

      • Calls the addMarker method to map all markers that the map div element contains.