In Salesforce Maps, administrators can relate records - such as Accounts or Contacts - to a Maps Shape Layer by creating a Lookup Relationship field on the object. This lets those records be plotted on the map whenever the Shape Layer is included in a Marker Layer. This article walks through creating the lookup field, adding it to the page layout, and setting up the tooltip needed for the shape to plot correctly.
This article explains how to relate a Salesforce record, such as an Account or Contact, to a Maps Shape Layer so the record can be plotted on the map when that Shape Layer is included in a Marker Layer.
Follow these steps to create a Lookup Relationship field on a Salesforce object and connect it to a Maps Shape Layer:
1. Create a lookup field for the object. For example, if you want to relate a Shape Layer to an Account, navigate to the Object Manager, select Account, then select Fields & Relationships.
2. Click the New button to the right of the Quick Find search bar.
3. Select Lookup Relationship. Click Next.
4. Select Maps Shape Layer. Click Next.
5. Enter a Field Label. The Field Name should auto populate. If it does not auto populate, click into the Field Label box and then press the tab key. Click Next.
6. Choose who can see this field on the page layout. Click Next.
7. The next page assigns the field to the Account page. Click Next.
8. Ensure Maps Shape Layer Layout is checked. Click Save.
9. Navigate to a record and you should now see the Map Shape Layer field. Enter the name of the Shape Layer in this record.
10. In order for the shape to plot in Maps, add a tooltip for Map Shape Layer (Lookup). Select Name in the second field. Please note that only a maximum of 100 shapes will plot on the map per Marker Layer.
11. Click Save & Plot.
12. Now the shape will appear if the record is included in the Marker Layer results.
000380775

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.