Documentation → How-to guides
Publish and share a map
A share link turns a map into a page that anyone can open without signing in. It also gives you an iframe to paste into a site, a wiki or a report. Anyone with the link can open the map until you revoke it, which you can do at any time.
Create the link
- Open the map and choose Share map.
- Choose Create share link.
- Copy whichever of the three forms you need.
| What you copy | Looks like | Use it for |
|---|---|---|
| Share link | /s/… |
Sending to a person. A full page with the map's title, description and a preview card. |
| Embed code | an <iframe> |
Pasting into a page you control. |
| Embed URL | /e/… |
The map on its own with no surrounding page, for a custom iframe or an app. |
Anyone with the link can view the map. They can see all its
layers and pass the link on. There is no password and no list of permitted
viewers. Share pages are marked noindex so search engines don't
list them, but treat a share URL as public once you've sent it to anyone.
What a viewer gets
- The map at the view you saved, with its visible layers and their styling.
- The map's description, shown on the map. Use it to explain what your styling means, because a legend shows the colours but not what they stand for.
- Attribution for each layer that has it, in the map's credits control.
- Nothing else. A viewer can't edit the map, see your other datasets, get into your account or download the source files.
When you paste a share link into Slack or a chat app, it shows a preview card with the map's name and a generated image (the image is not a screenshot of the map). Sites that support oEmbed, such as Notion, WordPress and Medium, turn a pasted share link into the live embed, so you often don't need the iframe code at all.
Sharing a single dataset
Datasets have their own Share action, which publishes that one layer on its own. You get the same three forms and can revoke the link in the same way, and anyone with the link can view the layer. Share a map when you want to show several layers styled together. Share a dataset when you only need that layer.
Attribution and licence obligations
If a dataset in the map has attribution, the share page shows it in three places: the map's credits control, the page markup that link previews read, and the preview card.
mapbench tells you about licence obligations but doesn't stop you publishing. If a layer's licence has conditions, the share dialog warns you and lets you continue. Read the warning, and record the licence and attribution on your datasets before you publish. mapbench is not a legal review, and nothing here guarantees that you are allowed to publish something.
Revoking
Open Share map and choose Revoke link. The page, the embed and the map's tiles stop working through that link immediately, with no cache delay. Any page that embeds it shows an empty frame from then on.
Revoking a link only ends that public URL. The map, its datasets and everyone's access in the app are unaffected.
Rotating a link, and expiry
A share link can be rotated, which replaces it with a new URL and stops the old one working. A link can also be created with an expiry. You can do both through the API or a connected agent, but not in the share dialog. Rotate a link when it has spread further than you intended and you still want the map published. Revoke it when you want the map taken down.
Who can publish
Publishing makes a map public, so not every kind of access can do it. In the app, you can share any map you can edit. An API key can't share maps: no key preset includes sharing, because a long-lived key shouldn't be able to make your organisation's data public by default. An OAuth connector can, because you approve that permission on a consent screen and can withdraw it from your account page. API keys, scopes and projects has the full table.
Troubleshooting
- The embed is blank, or the frame is empty
-
Either the link was revoked, or you embedded the share link
(
/s/…) instead of the embed URL (/e/…). The share link can't be shown in a frame, but the embed URL can. Copy the Embed code field to get the right one. - A layer is missing from the published map
- Check it is visible in the editor and that its dataset is Ready. If a layer's dataset is still processing or has failed, the layer is left out of the share.
- The preview card does not show my map
- That is expected. The card is a generated graphic that shows the map's name and the shape of its extents. It isn't a rendered image of the map.
- The link works for me but not for a colleague
- You are probably testing while signed in. Open the link in a private window. If it fails there, the link has been revoked or the URL was cut short. Share links are long, and chat clients that wrap the URL are the usual cause.
- I want to un-publish everything at once
- You can't do this in one step. Revoke each link from its map or dataset. Your account page lists the links you have created.
See also
- Your first map: the tutorial that leads up to publishing.
- API keys, scopes and projects: who can publish.
- Privacy: what happens to the data you bring in.