Skip to main content

Editor — mount the map editor

product="editor" mounts the Kaleidr map editor in your page. It creates and drives its own MapLibre map inside the element (an attach/in-proc doorway, not an iframe).

const handle = Kaleidr.mount('#editor', {
publishableKey: 'kld_pk_live_…',
product: 'editor',
styleId: 'kaleidr-night', // catalog basemap id or a full style URL; defaults to kaleidr-morning
});

The standalone embed runs the editor's client-side tools — the on-map editing surfaces mount over the basemap and edits live on the embed's in-memory spec (nothing is persisted). The AI-driven surfaces (map-design and the Control Tower) and the 3D model library aren't part of the standalone embed; they need a Kaleidr backend and host-served assets.

For a dev basemap, pass a full dev style URL as styleId (e.g. https://tile-dev.kaleidr.com/styles/kaleidr-morning.json). See Attach the editor.