3D Terrain

Blog › Share Links and Embeds: Putting Interactive Terrain in Your Own Site

Share Links and Embeds: Putting Interactive Terrain in Your Own Site

November 23, 2026 · 3 min read

Most maps on the web are pictures. You screenshot a nice view, paste it, and readers get exactly what you framed — frozen, flat, finished. The terrain app offers the other thing: a link (or an iframe) that opens the actual map — the one readers can rotate, tilt and explore, still loaded with your region, your colours and your annotations.

Share links: the whole scene in a URL

Press Share Link and the app packs the entire scene into a short URL — a code like /s/10231 that reopens everything: the region or drawn box, colour ramp and band scaling, overlays, lighting mood, relief and thickness, camera position, title and subtitle, and every annotation and note. The table below is the honest inventory of what comes back when someone opens your link.

What your link restoresYes
Region (country → state → county) or drawn box✓
Colour ramp, band scaling, contours, slope shading✓
Overlays: labels, boundaries, summits, water, roads, buildings✓
Annotations — points, lines, arrows, notes, tables✓
Camera position, zoom, lighting mood✓
Title and subtitle✓
Expiry dateNone — permanent

Links do not expire, and the parameters travel inside the link itself — nothing is tied to an account (there are no accounts). If it is your own link, you can update the scene later and press Share again: the URL stays the same and the contents refresh.

The embed: an iframe that readers can drive

For your own site, the Export panel has Copy embed code. It writes a ready-to-paste iframe — read-only, panel stripped, canvas and in-map features kept, with a small badge back to the site:

<iframe src="https://3dterrain.cloud/?c=<your packed scene>&embed=1"
        width="960" height="600"
        style="border:0;border-radius:12px"
        loading="lazy" referrerpolicy="no-referrer"></iframe>

The embed is genuinely interactive: readers rotate the terrain, zoom the satellite texture, read annotations — they just cannot edit your map. Width is adjustable between 320 and 1920 px, height between 240 and 1200.

The height problem, already solved

One catch with any map iframe is height: a fixed-height frame either crops tall scenes or letterboxes short ones. The embed solves it by talking to your page — it posts a ready message, then reports its ideal height every second:

<script>
window.addEventListener('message', function (e) {
  if (e.origin !== 'https://3dterrain.cloud') return;
  if (e.data && e.data.type === 'elev:resize') {
    document.getElementById('terrain').style.height = e.data.h + 'px';
  }
});
</script>

Give your iframe an id, paste that listener, and the frame grows and shrinks with the scene — a detail most embeds leave to you, and the usual reason terrain embeds end up cropped.

Where embeds earn their keep

A sea-level-rise demo in a lesson page, where students rotate the flooded coastline instead of trusting a chart. A trail report with the route mapped and explorable. A project page whose study area sits at the top, live. The Matterhorn case study on this blog was built exactly this way — a box drawn once, then shared and embedded. For route-focused posts, the GPS guide covers draping a recorded ride first; the embed then carries your whole annotated scene.

No API, no keys, no JavaScript SDK to install — a URL is the whole contract, and it does not expire.

Try it while it's fresh

The whole tool runs in your browser — pick a region, shape the relief, export. No account, nothing to install.

Open the terrain app
← Detail Controls Explained: Imagery Zoom, Footprint Density and the Terrain GridMap an Exact Boundary: Importing Your Own GeoJSON Area →
Contact: admin@3dterrain.cloud · Terms of Service · Privacy Policy · Pricing