Embed a published world
Whether you need a published Klorad One world inside your site or the scene inside your own application, what each takes today, and what is not available yet.
There are two ways to put a Klorad world inside your product, and they are different work. Embedding a published world means showing a world someone published in Klorad One inside your site, for example in an iframe. SDK integration means building the scene into your own application with the packages these docs describe.
| You want | What it takes today |
|---|---|
| A world published in Klorad One, shown inside your site or product | Set up with us per project; see below |
| The scene inside your own application, under your own interface and data | SDK integration: the quickstart, then Connect server data to your browser scene and Choose what visitors can see |
A published Klorad One world
Klorad One publishes each public World at its own address, /p/<slug> on your Klorad One,
with an installable app, as a new version each time it is published
(Klorad One and the SDK). Opening that address in a browser is the
supported way to show it.
Embedding that page in another site is not yet a documented, tested feature. There are no supported iframe parameters, events or messages between the page and your site, and sizing, access to unpublished worlds and VR inside a frame have not been tested. If you need a published world inside your product, we set it up with you for that project: discuss embedding.
The scene inside your application
With the SDK, the view is a component of your application (ThreeView, MapView,
MapboxView or CesiumView), so its size, its access rules and its interaction are yours:
- Start: the quickstart gives a running app with a scene in it.
- Your data: Connect server data to your browser scene.
- Only what visitors may see:
publicPackagebuilds the filtered package a public view is made from (Choose what visitors can see); serving it is your application's job. - VR: Walk a scene in VR says what a visitor needs.
Something wrong or unclear? Tell us.