> For the complete documentation index, see [llms.txt](https://help.brickspacelab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.brickspacelab.com/slab/content/blocks/basics/map/location.md).

# Map item

## Block limitations

This is a private block and can only be used within specific parent blocks. It is designed to work exclusively within the [Map](/slab/content/blocks/basics.md) block.

## Overview

A dynamic block designed to display an individual store location on a map. When clicked, it triggers a JavaScript function to fly to the specified longitude and latitude. Store details are presented within an accordion component, allowing for expandable content.

## Common use cases

* Ensure the `flyToLocation` JavaScript function is globally accessible and properly implemented to interact with the map
* Always provide accurate `latitude` and `longitude` values for precise map positioning
* Localize the store name and store details settings for multi-language storefronts
* Coordinate `color_scheme` and `border_position` settings with the overall theme design for a consistent look and feel

## Compatible blocks

The following blocks can be nested within this block:

* [Container](/slab/content/blocks/layout/container.md) (for label)
* [Container](/slab/content/blocks/layout/container.md) (for content)

## Block settings

### General

| Setting                | Description                                                   | Options                   |
| ---------------------- | ------------------------------------------------------------- | ------------------------- |
| Show advanced settings | Reveals enable pre-opened, enable single open, and visibility | Checkbox (default: false) |

| Setting                   | Description                                 | Options                                                                                                                           |
| ------------------------- | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| Latitude                  | Latitude coordinate for the location        | Text input (default: "43.691070")                                                                                                 |
| Longitude                 | Longitude coordinate for the location       | Text input (default: "-79.337015")                                                                                                |
| Enable internal padding   | Adds padding inside the accordion           | Checkbox (default: true)                                                                                                          |
| Enable horizontal padding | Adds horizontal padding around the block    | Checkbox (default: false)                                                                                                         |
| Enable top padding        | Adds top padding                            | Checkbox (default: false)                                                                                                         |
| Enable bottom padding     | Adds bottom padding                         | Checkbox (default: false)                                                                                                         |
| Color scheme              | Controls the background color scheme        | Body, Neutral, Accent 1, Accent 2, Accent 3, Shade 1, Shade 2, Shade 3, Primary, Secondary, Tertiary, Blur, Transparent (default) |
| Border color              | Controls the border color                   | Body, Subtle (default), Strong, Primary, Secondary, Tertiary, None. Visible when border position is not empty                     |
| Border position           | Controls which sides have borders           | None, Top, Bottom (default), Left, Right, Top and bottom, Left and right, All                                                     |
| Enable pre opened         | Opens the accordion by default              | <p>Checkbox (default: false)<br><br>Visible when <strong>Show advanced settings</strong> is on</p>                                |
| Enable single open        | Closes other accordions when this one opens | <p>Checkbox (default: false)<br><br>Visible when <strong>Show advanced settings</strong> is on</p>                                |
| Visibility                | Controls when the block is visible          | <p>All (default), Mobile only, Desktop only<br><br>Visible when <strong>Show advanced settings</strong> is on</p>                 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.brickspacelab.com/slab/content/blocks/basics/map/location.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
