---
schema_version: "1"
id: de7391d51c8ce7f5642bd3fbf1393553924e34cae7881fa162166683ac41cdd4
title: "Custom Link Example: International Maps"
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/links_useful_custom_buttons_international_maps.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.links_useful_custom_buttons_international_maps.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6d4378784d2ab7889179be0069a9458f62b0abe7e443c274cf6d7d2fde89d723
description: This example creates a link that displays a country-specific Google map.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Custom Link Example: International Maps

This example creates a link that displays a country-specific Google map.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
        <colgroup>
          <col>
        </colgroup>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p>Custom buttons and links are available in: <strong>All</strong> Editions</p>
              <p style="margin-bottom:0;">Visualforce
                pages and s-controls are available in: <strong>Contact Manager</strong>, <strong>Group</strong>,
                <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>,
                and <strong>Developer</strong> Editions
              </p>
            </td>

          </tr>
        </tbody>
      </table> <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="vertical-align:top;" id="d122307e87">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d122307e87 ">To create or change custom buttons or links:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d122307e87 ">Customize Application</td>

          </tr>
        </tbody>
      </table>

1. Define a link for accounts with these attributes.
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><tbody><tr class=""><th style="vertical-align:top;" headers="d122307e114-option" id="d122307e118">Display Type</th><td style="vertical-align:top;" headers="d122307e114-desc d122307e118">Detail Page Link</td></tr><tr class=""><th style="vertical-align:top;" headers="d122307e114-option" id="d122307e127">Behavior</th><td style="vertical-align:top;" headers="d122307e114-desc d122307e127">Display in new window</td></tr><tr class=""><th style="vertical-align:top;" headers="d122307e114-option" id="d122307e136">Content Source</th><td style="vertical-align:top;" headers="d122307e114-desc d122307e136">URL</td></tr></tbody></table>
    
    Use this sample code.
    
    ```javascript
    {! 
    IF(Sample.BillingCountry = "US", 
    "http://maps.google.com/maps?q=​"&Sample.BillingStreet&​
    "+"&Sample.BillingCity&"+​"&Sample.BillingState&"+​"&Sample.BillingCountry, 
    (IF(Sample.BillingCountry = "UK", 
    "http://maps.google.co.uk/maps?q=​"&Sample.BillingStreet
    &​"+"&Sample.BillingCity&​"+​"&Sample.BillingCountry, 
    "http://maps.google.com"))) 
    }
    ```
2. Add the link to your account page layout.

#### See Also

- [Custom Button and Link Samples](https://help.salesforce.com/s/articleView?id=platform.links_useful_custom_buttons.htm&release=264.0.0&type=5 "Use samples of custom Salesforce buttons and links to determine whether they can work for you.")