> For the complete documentation index, see [llms.txt](https://docs.devhub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devhub.com/themes-and-custom-templates/advanced-examples/static-google-maps.md).

# Static Google maps

### Simple map example

```markup
<img src="{{ get_static_map(location=site.locations[0]) }}" width="680", height="340">
```

### Advanced usage

```markup
{{ get_static_map(
  location=site.locations[0],
  width=680,
  height=340,
  scale=2,
  icon="https://www.example.com/some-icon.png",
  zoom=14
) }}
```

### Icon best practices

* For the custom icon, it should be sized appropriate for the map since you will not have control over the icon width/height.
* Icon URL needs to be a full url (with http/https)
* If you are using an uploading image, you can use our image path for the icon.
  * Example: /img/upload/some-uploaded-icon.png
  * When providing an icon image, the max pixels (width multiplied by height) for the image can't exceed 4096. So a normal size is 64x64 pixels or less
