> For the complete documentation index, see [llms.txt](https://guide.maps.gov.sg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.maps.gov.sg/sharing-your-map/embedding-maps-to-your-website.md).

# Embedding Maps on your website

{% hint style="info" %}
You need to [publish your map](https://guide.maps.gov.sg/sharing-your-map/publishing-your-map.md) first. The **Embed code** card appears only once the map state is **Live**.
{% endhint %}

{% hint style="warning" %}
Embedding isn't available for [private maps](https://guide.maps.gov.sg/sharing-your-map/making-a-map-private.md), and new maps are private. On a private map the **Embed code** card reads `Private maps cannot be embedded on a website.` — map users can't sign in inside an embedded frame, so a private map can only be shared via its link or QR code. Set the access type to **Public map** to embed it.
{% endhint %}

1. In the navigation bar on the left, select **Publish map**.
2. Under **Embed code**, select **Copy code** to copy the entire snippet.
3. Paste it into your website editor.

<figure><img src="https://585017024-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLmzev03OtnqV1VC7eYj%2Fuploads%2Fgit-blob-b50a983d9ec73f0949a1b79e48547a4fd56a1d1a%2Fpublish-embed-code.png?alt=media" alt="Embed code card showing the iframe snippet and the Copy code button"><figcaption></figcaption></figure>
