Embed reference

Embed interactive maps in your website.

The KnowMapped Web Component lets you add public maps to websites and web applications without an iframe or a dependency on a particular web framework.

Live embed

This example loads a published map through its public-view URL.

Embed with an iframe

The iframe loads the public map viewer in a separate browsing context, which avoids conflicts with the host page’s styles and scripts. Set its dimensions in the surrounding page layout.

01

The markup

Replace 27aca0fe-ea08-4a15-97ee-b0ade9ae4dff with the ID of any public map.

<iframe
  src="https://knowmapped.com/view/27aca0fe-ea08-4a15-97ee-b0ade9ae4dff?embed=1"
  width="100%"
  height="650"
  style="border:0"
  loading="lazy"
  allowfullscreen>
</iframe>
02

Adjust settings

When copied from KnowMapped, the embed URL includes the public-view settings you selected.

Editing a map does not update its public version. Publish the new snapshot in KnowMapped; the iframe URL stays the same.

The published map also carries its saved visual design: themes, node shapes and icons, relationship line styles and end markers, and Futures Wheel domain colors and spacing. These are set in the map editor, not as HTML attributes. After changing them, choose Update public map so the embed receives the new version.

The Web Component

The Web Component renders the same viewer without an iframe. Its attributes control the title, dimensions, frame, background, and exploration behavior. Include the script once on each page that uses the component. The published map supplies its theme and visual styling to both embed formats.

<script type="module" src="https://knowmapped.com/embed/v1/knowmapped-embed.js"></script>

<knowmapped-map
  map-id="27aca0fe-ea08-4a15-97ee-b0ade9ae4dff"
  show-title
  height="650px"
  data-width="normal"
  data-show-frame="true"
  data-show-background="true"
  data-exploration="true">
</knowmapped-map>

Boolean options default to on. Set an option to false to turn it off, for example show-title="false".

The embed uses the appearance saved with the published map, including its theme, node styling, and relationship styling. There are no separate embed attributes for these appearance choices.

AttributeRequiredDescription
map-idYesUUID of the public KnowMapped map to display.
show-titleNoDisplays the map title above the visualization. Defaults to shown.
heightNoSets any valid CSS height, such as 650px, 70vh, or clamp(400px, 60vw, 800px). Without it, the map chooses a responsive height automatically.
data-widthNoControls the layout width. Accepts normal (default), wide, or full.
data-show-frameNoShows the border, rounded corners, and shadow. Set to false for a frameless map. Defaults to true.
data-show-backgroundNoShows the map theme background and grid. Set to false for a transparent background. Defaults to true.
data-explorationNoEnables pan and zoom after the visitor activates navigation. Set to false to keep the viewport fixed. Defaults to true.

How embeds behave

Embeds display public maps and do not grant editing access. A private map remains unavailable to the embed. Publish it inKnowMapped before adding it to a page.

Interaction

The page scrolls normally until visitors click or tap the map or choose Explore map. Choose Stop exploring (×) or press Escape to pause map navigation and resume page scrolling.

Layout

The viewer fills its container. Set the height on the iframe or Web Component to fit the page layout.

Framework-neutral

The Web Component works in plain HTML and framework-based sites, including Astro, WordPress, and React.

Public maps only

The embed serves maps published as public. Private maps are not available through the embed code.