# Google map

Show a map of your store location with your address, opening hours, and a button to get directions. Use it to help customers find your physical store.
Before you set up the map, add your Google Maps API key in **Theme settings** > [Integration](https://docs.foxecom.com/minimog-theme/theme-settings/integration). To get a key, see [Google's guide to getting an API key](https://developers.google.com/maps/documentation/javascript/get-api-key).
## How to add Google map
1. Open the theme editor (**Edit theme**).
2. Click **Add section** under **Template** in the sidebar.
3. Select **Google map**.
4. Enter your store's latitude in **Coordinate X**.
5. Enter your store's longitude in **Coordinate Y**.
6. Click **Save**.
If **Google map** is already on the page, click it to edit it instead.

## Section settings
**General**, **Animations**, and **Custom Attributes** work the same as in every section. See [Common section settings](https://docs.foxecom.com/minimog-theme/theme-sections/common-section-settings).
### Maps settings
| Setting | Description | Options |
| -------------------------------- | --------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Height** | The height of the map. | **Small**, **Medium**, or **Large**. |
| **Coordinate X** | The latitude of your store location. | Enter a number, such as `40.6700`. |
| **Coordinate Y** | The longitude of your store location. | Enter a number, such as `-73.9400`. |
| **Zoom** | How close the map is zoomed in. A higher number shows a closer view. | **10 to 20.** |
| **Map Text** | The text shown on the map, such as your city name. | Enter text, such as `New York`. |
| **Content position** | Where the content box sits on the map. | **Top left**, **Top center**, **Top right**, **Middle left**, **Middle center**, **Middle right**, **Bottom left**, **Bottom center**, or **Bottom right**. |
| **Content alignment** | How the text lines up inside the content box. | **Left**, **Center**, or **Right**. |
| **Use content in container box** | Keeps the content box inside the page's container, instead of near the edge of the map. | **On** or **Off**. |
## Blocks
Blocks add the content box on top of the map, such as your store name, address, opening hours, and a **Get directions** button.
To add one, click **Add block** under **Google map** in the sidebar, then choose **Heading**, **Sub heading**, **Text**, or **Button**. The blocks show in the order you arrange them in the sidebar.
### Heading
| Setting | Description | Options |
| ---------------- | ----------------------------- | --------------------------------------------------------------------------------------------------- |
| **Heading** | The title of the content box. | Enter text, such as `Our store`. |
| **Heading size** | The size of the heading. | **Heading xs**, **Heading sm**, **Heading md**, **Heading lg**, **Heading xl**, or **Heading 2xl**. |
### Sub heading
| Setting | Description | Options |
| -------------- | ---------------------------------------- | ----------- |
| **Subheading** | A short line of text in the content box. | Enter text. |
### Text
| Setting | Description | Options |
| ------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| **Text** | Your store address and opening hours. You can format it as bold, italic, a link, or a list. | Enter text. |
| **Text size** | The size of the text. | **Small**, **Base size**, **Large**, **Extra large**, or **Default**. |
### Button
| Setting | Description | Options |
| ---------------- | ---------------------------------------------------- | ------------------------------------------------------------------------------------ |
| **Button label** | The text on the button. | Enter text, such as `Get directions`.
*Leave blank to hide the button.* |
| **Button link** | The page customers go to when they click the button. | Paste a link or search for a page. |
| **Button style** | How the button looks. | **Primary button**, **Secondary button**, **White button**, or **Underline button**. |
The map shows your store location in the theme editor preview, with your content box on top.
## Related articles
Integration
Common section settings
Store locator