Loading
Salesforce Enforces New Security Requirements in Summer 2026Read More
Salesforce Maps
Add Nearby Maps to Salesforce Record Pages

Add Nearby Maps to Salesforce Record Pages

Embed relevant, contextual nearby maps directly in records when you add a Salesforce Maps component to page layouts in Lightning Experience.

Required Editions

View supported editions.
User Permissions Needed
To customize settings: Customize Application
  1. If you don’t use enhanced domains, skip to the next step.
    Otherwise, from Setup, in the Quick Find box, enter Installed Packages, and then select Installed Packages.

    Next to the Salesforce Maps package, click Configure. On the Advanced tab, select the option to use enhanced domains. Save your changes.

    Option to use enhanced domains in community sites
  2. In Salesforce, open a record that you want a nearby map to, such as an account or a contact.
  3. Click Setup | Edit Page.
    Lightning App Builder appears.
  4. Under Components, scroll to Custom–Managed. Drag the Maps Nearby Map component to an area of the page layout where you want the map to appear.
    Maps Nearby Map component on the Account page layout
  5. If you use enhanced domains, skip to the next step.
    Otherwise, in Community Path, enter the domain name for your Salesforce My Domain followed by --maps.vf.force.com.
    For example, the login URL for your Salesforce My Domain is https://northerntrailoutfitters.my.salesforce.com and your My Domain name is northertrailoutfitters. Enter the community path: https://northerntrailoutfitters--maps.visualforce.com
  6. In Nearby Map, specify what you want to appear on the map.
    For example, to show the account’s marker in the center of the map, select Default Account Billing.
  7. Save your changes.
    Nearby map on an account record
    The nearby map appears on the record.
 
Loading
Salesforce Help | Article