Skip to content

Getting Started

The JavaScript SDK is @expofp/floorplan on unpkg. Initialize the interactive floor plan with load(), passing your event manifest ($ref) and optional FloorPlanOptions.

Prerequisites

A recent desktop or mobile browser with JavaScript enabled and support for ES modules (for <script type="module"> and static import).

Quick start

Import { load } from CDN inside a <script type="module"> block:

html
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <script type="module">
      import { load } from 'https://unpkg.com/@expofp/floorplan';
      await load({ $ref: 'https://demo.expofp.com/manifest.json' });
    </script>
  </head>
  <body></body>
</html>

Open live example

Upgrading from SDK v2

If you used the global ExpoFP script and new ExpoFP.FloorPlan, follow the Migration guide — options map to v3, only the manifest and import style change.

Next steps

Continue with Map integration — embed the plan with load or an iframe, and sizing tips for your container.