Mobile Layouts: Maps

The Maps widget allows you to display a map fragment with an object location.

Specify Google Maps API Key

If you selected Google Maps service as the map type in the CT Mobile app settings, you need Google Maps API Key.

To specify the Google Maps API key:

  1. Generate the Google Maps API key.

  2. Go to the CT Mobile Control Panel: General / CT Mobile Control Panel 2.0: General tab and insert the generated key in the Google Maps iOS API Key field.

  3. Click Save.

The setup is complete.

Specify Account Address

The Maps widget can display Accounts on the map using address information from the specific field:

  • field with the Geolocation type to store geolocation data such as account coordinates.

  • field with the Formula type to store an account address as text and geocoding.

CT Mobile checks if there is geolocation data in the field with the geolocation type. If the geolocation data is empty, the location will be set according to the address in the field with the formula type.

To set an account address:

  1. Go to Setup → Object Manager → the Account object.

  2. Click Fields & Relationships.

  3. Create a new field.

    • To use account coordinates, create a field with the Geolocation type.

    • To use geocoding, create a field with the Formula type.

  4. Go to CT Mobile Control Panel: General / CT Mobile Control Panel 2.0: General:

    1. In the Account Geolocation Field picklist, select the field with the Geolocation type.

    2. In the Account Full Address Field picklist, select the field with the Formula type.

  5. Click Save.

The setup is complete.

Add Accounts to the Menu

To add the Account to the app menu:

  • In CT Mobile Control Panel

  • In CT Mobile Control Panel 2.0

  1. Go to CT Mobile Control Panel: App Menu tab.

  2. Select the required profile in the Location picklist. To apply settings to all the profiles, select General Settings.

  3. Drag and drop Accounts from the Available column to the Selected.

  4. Click Save.

  1. Go to CT Mobile Control Panel 2.0: App Menu.

  2. Select the required profile in the Profile picklist. To apply settings to all the profiles, select General Settings.

  3. Move Accounts from the Available column to the Selected.

  4. Click Save.

The setup is complete.

Add Maps to the Mobile Layout

To add the Maps widget to the mobile layout:

  1. Go to Setup → Object Manager → select the Account object.

  2. Click Page Layouts and select the mobile layout.

  3. Drag and drop the Section element to the area below the Address section.

  4. In the Section Properties window, enter MAPS in the Section Name field, and select the 1-Column layout. Ensure that the Display Section Header On checkbox is enabled.

    Do not translate the MAPS section name. It is responsible for displaying Dashboards on the mobile layout and should be left intact.
    47746934
  5. Click OK.

  6. Drag and drop the Blank Space element below the MAPS element.

  7. Click Save.

The Maps widget is configured.

Use the Determine Location button to determine the current device location data.

62561482
``