> ## Documentation Index
> Fetch the complete documentation index at: https://docs.digifist.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Map

> Embed a Google Map displaying a specific location with customizable zoom level and styling.

The Map section embeds a Google Map displaying a specific location or address. It uses the Google Maps Embed API to show an interactive map with customizable zoom level and styling.

Map sections are essential for showcasing physical store locations, office addresses, or event venues, helping customers find your business easily.

<img src="https://mintcdn.com/digifist/IgimqscNiUxwqDBG/images/theme/release/sections/map/map-overview.png?fit=max&auto=format&n=IgimqscNiUxwqDBG&q=85&s=00a49959380cccd0da5e78236d6f4bc3" alt="Map section overview" width="3280" height="2186" data-path="images/theme/release/sections/map/map-overview.png" />

## What this section controls

This section controls map displays with the following capabilities:

* Google Maps Embed API integration
* Shop address default or custom address input
* Zoom level control (0-21)
* Responsive iframe embed
* Multiple section width options
* Border radius customization

## How the Map section works

The Map section displays an embedded Google Map:

* Requires a Google Maps API key to function
* Uses shop address by default or accepts custom address
* Configurable zoom level (0-21)
* Responsive iframe embed with border radius
* Full width or contained layout options

## Getting started

<Steps>
  <Step title="Set up Google Maps API key">
    Create a Google Maps API key in Google Cloud Console. [Learn how](https://support.google.com/googleapi/answer/6158862?hl=en)
  </Step>

  <Step title="Open Theme Customizer">
    From Shopify admin, access the Theme Customizer.
  </Step>

  <Step title="Add Map section">
    Add the Map section to your page or template.
  </Step>

  <Step title="Configure settings">
    Enter your API key, set address (optional), and adjust zoom level.
  </Step>
</Steps>

<img src="https://mintcdn.com/digifist/IgimqscNiUxwqDBG/images/theme/release/sections/map/map-location.png?fit=max&auto=format&n=IgimqscNiUxwqDBG&q=85&s=b65867b76a62cb8b9e36b4cf99d20245" alt="Map section in Theme Customizer" width="3280" height="2186" data-path="images/theme/release/sections/map/map-location.png" />

## Section settings

Section settings control map configuration and display options.

<Tabs>
  <Tab title="Map configuration">
    ### API key

    Google Maps API key for embedding maps.

    **Type:** Text area

    <Warning>
      The map will not display without a valid API key.
    </Warning>

    <img src="https://mintcdn.com/digifist/IgimqscNiUxwqDBG/images/theme/release/sections/map/api-key.png?fit=max&auto=format&n=IgimqscNiUxwqDBG&q=85&s=301d389c35ed0b6ca1db1737e09417f8" alt="API key configuration" width="3280" height="2186" data-path="images/theme/release/sections/map/api-key.png" />

    <Tip>
      You can learn how to set up Google API keys [here](https://support.google.com/googleapi/answer/6158862?hl=en).
    </Tip>

    ### Address

    Custom address to display on the map.

    **Type:** Text input

    <Note>
      Uses the shop address by default. Override it using this format: street address, city country / state
    </Note>

    ### Zoom level

    Controls the zoom level of the map.

    **Range:** 0 – 21

    **Default:** 16

    * Lower values show larger area
    * Higher values show more detail

    <img src="https://mintcdn.com/digifist/yuggJPUIy_CDeMJf/images/theme/release/sections/map/zoom-level.png?fit=max&auto=format&n=yuggJPUIy_CDeMJf&q=85&s=50e561cb0c83afab5604572bd5bff5f0" alt="Zoom level configuration" width="3280" height="2186" data-path="images/theme/release/sections/map/zoom-level.png" />
  </Tab>

  <Tab title="Settings">
    ### Section width

    Controls the maximum width of the map.

    **Available options:**

    * **Page:** Standard page width
    * **Narrower:** Narrower than page width
    * **Fluid:** Wider than page width
    * **Full:** Full viewport width

    **Default:** Full

    ### Color scheme

    Controls background and text colors for the section container.

    * Shopify color scheme selector
    * **Default:** Scheme 1

    ### Spacing top

    Controls spacing above the section.

    **Available options:** None, S, M, L, XL

    **Default:** M

    ### Spacing bottom

    Controls spacing below the section.

    **Available options:** None, S, M, L, XL

    **Default:** M

    <img src="https://mintcdn.com/digifist/yuggJPUIy_CDeMJf/images/theme/release/sections/map/section-settings.png?fit=max&auto=format&n=yuggJPUIy_CDeMJf&q=85&s=b397a9391d911771dbb683ca6686c9da" alt="Section width and spacing settings" width="3280" height="2186" data-path="images/theme/release/sections/map/section-settings.png" />
  </Tab>
</Tabs>

## Best practices

* Set up Google Maps API key with proper restrictions for security
* Use full address format for accurate location display (street address, city, country/state)
* Test zoom level to ensure relevant landmarks are visible
* Consider using full width for prominent store location displays
* Use narrower or page width for inline contact page maps
* Add address information in surrounding content for accessibility
* Test map loading on different connection speeds
* Consider adding a fallback address link for users with JavaScript disabled
* Keep API key secure and monitor usage in Google Cloud Console
* Restrict API key to your domain to prevent unauthorized usage

## Common use cases

* **Store locator page** - Display primary store location on a dedicated page
* **Contact page** - Show office or retail location alongside contact information
* **About page** - Highlight headquarters or flagship store location
* **Event page** - Display event venue location for in-person gatherings
* **Multiple locations** - Use multiple map sections for businesses with several physical locations

## Related guides

<Card title="Common Settings" icon="sliders" href="/themes/release/common-settings">
  Learn about common settings shared across sections
</Card>
