# Generate Static Map Image

> This snippet will show you how to generate a static map image.

Source: https://tadabase.com/docs/snippets/generate-static-map-image  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

This snippet will show you how to generate a static map image.

![Screenshot for “Generate Static Map Image”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-12_15-41-20.png)

**Step 1**

To start, add a Text Formula to any table that has an Address field. The text formula will be made up of the following parts

1. `https://maps.googleapis.com/maps/api/staticmap?center=`
2. Add Field > **Address - Address** field.
3. `&zoom=13&size=600x300&maptype=roadmap&markers=color:red%7Clabel:%7C`
4. Add Field > **Address - Latitude**
5. `,`
6. Add Field > **Address - Longitude**
7. `&key=YOUR_GOOGLE_API_KEY` (You can create an API key in the [Google Developers Console 1](https://console.developers.google.com/).)

![Screenshot for “Generate Static Map Image”](https://community.tadabase.io/uploads/default/original/2X/2/2e974f053d0b9220dffca056934e291fbba58ee2.png)

The result should look like this.

![Screenshot for “Generate Static Map Image”](https://community.tadabase.io/uploads/default/optimized/2X/a/aebd91cc66f21f9e8dccaface68da2397d73ea38_2_620x500.png)

> **Note:** A similar Text Formula (found below) can be used if you'd like to display a Street View.

1. `https://maps.googleapis.com/maps/api/streetview?size=1800x1800&location=`
2. Add Field > **Address - Address**
3. Add Field > **Address - City**
4. Add Field > **Address - State**
5. Add Field > **Address - Country**
6. `&source=outdoor&key=YOUR_GOOGLE_API_KEY`

**Step 2**

**To add this to your List component, you may add the following to HTML inside a List. (Change field_id to the Text Formulas field slug)**

```
<p><img src="{!!field_id!!}" alt="" width="100%" /></p>
```

![Screenshot for “Generate Static Map Image”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-12_22-42-06.png)

**Step 3**

**To add this to a PDF, add an HTML Component and the following to the Source Code.**

> **Note:** **Change “Text Formula” to the name of your Text Formula Field.**

```
<p><img src="{!!Text Formula!!}" alt="" /></p>
<p style="display: none;">{Text Formula}</p>
```

![Screenshot for “Generate Static Map Image”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-13_15-12-28.png)

**Original Community Post:**

[Generate static map image - Community Discussions / Tips and Tricks - Tadabase Community](https://community.tadabase.io/t/generate-static-map-image/1829)
