> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/dynamic-components/tutorials/components/map.md).

# Map

Build maps from Salesforce accounts, show record details, center on the current record, plan field visits, or save a territory drawn on Leaflet.

Build a map for a Salesforce task. Start with account markers if this is your first map, or choose a guide for the workflow you need.

## Show records on a map

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Map Accounts by Industry</strong></td><td>Plot Account records as pins and color them by industry.</td><td><a href="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FiIuSAdTXbpQMgfrhmvdL%2Fcover-map-accounts-by-industry.jpg?alt=media">cover-map-accounts-by-industry.jpg</a></td><td><a href="https://docs.avonnicomponents.com/dynamic-components/tutorials/components/map/map-accounts-by-industry.md">Map Accounts by Industry</a></td></tr><tr><td><strong>Show Account Details on Marker Select</strong></td><td>Open the map's details panel and inspect the Account behind a marker.</td><td><a href="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2F5YIoKBNiGp7DUN5xwk4b%2Fcover-show-account-details-on-marker-select.jpg?alt=media">cover-show-account-details-on-marker-select.jpg</a></td><td><a href="https://docs.avonnicomponents.com/dynamic-components/tutorials/components/map/show-account-details-on-marker-select.md">Show Account Details on Marker Select</a></td></tr><tr><td><strong>Center a Map on the Current Account</strong></td><td>Read the current Account's coordinates to center a record page map.</td><td><a href="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FpoStncIUGz9Lr1S5QxLy%2Fcover-center-a-map-on-the-current-account.jpg?alt=media">cover-center-a-map-on-the-current-account.jpg</a></td><td><a href="https://docs.avonnicomponents.com/dynamic-components/tutorials/components/map/center-a-map-on-the-current-account.md">Center a Map on the Current Account</a></td></tr></tbody></table>

## Plan field work

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Plan a Multi-Stop Visit Route</strong></td><td>Turn selected sites into a driving itinerary and export it as CSV.</td><td><a href="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2Fih0P8TCvCPETLlXxnOgu%2Fcover-plan-a-multi-stop-visit-route.jpg?alt=media">cover-plan-a-multi-stop-visit-route.jpg</a></td><td><a href="https://docs.avonnicomponents.com/dynamic-components/tutorials/components/map/plan-a-multi-stop-visit-route.md">Plan a Multi-Stop Visit Route</a></td></tr><tr><td><strong>Draw and Save a Sales Territory</strong></td><td>Outline a territory and save its GeoJSON as a file linked to an Account.</td><td><a href="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2Fs6hVoEJ19Rw9SwZbCUQF%2Fcover-draw-and-save-a-sales-territory.jpg?alt=media">cover-draw-and-save-a-sales-territory.jpg</a></td><td><a href="https://docs.avonnicomponents.com/dynamic-components/tutorials/components/map/draw-and-save-a-sales-territory.md">Draw and Save a Sales Territory</a></td></tr></tbody></table>

## Related guides

* [Map reference](https://docs.avonnicomponents.com/dynamic-components/components/map.md) covers map providers, marker mappings, settings, and outputs.
* [Enable Map Routing](https://docs.avonnicomponents.com/dynamic-components/components/map/enable-map-routing.md) shows an administrator how to connect a routing provider.
* [Reactive Map and Data Table](https://docs.avonnicomponents.com/dynamic-components/tutorials/reactive-components/maps-and-geolocation/reactive-map-and-data-table.md) uses a Data Table selection to update a Map.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avonnicomponents.com/dynamic-components/tutorials/components/map.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
